Commit Graph

1952 Commits

Author SHA1 Message Date
hondacrx 5a7d42530e Core/AI: Actually accurately reproduce the logic from before 8499434 that determines what summons start following on appearance. Third time's the charm?
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9d52c954793404af02f75af97390d7c82c433ff)
2021-12-24 20:55:55 -05:00
hondacrx 3126ac721d Core/SAI: silence wrong SAI error when using SMART_ACTION_SET_DATA on a creature using CreatureAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8c1adcf8f28a7ce90113175c732b98556c6bbb8)
2021-12-24 20:51:13 -05:00
hondacrx 31e0a1f476 Core/Spells: Moved SpellVisual functions from Unit to WorldObject
Port From (https://github.com/TrinityCore/TrinityCore/commit/54f607641ac9008a588b8ff635a9ed7ee7a5f976)
2021-12-24 20:50:24 -05:00
hondacrx 5de09a5046 Core/BattlePets: Added default cooldown to revive battle pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/1a846415493289fc3852e56c82514d85c421267c)
2021-12-24 20:41:51 -05:00
hondacrx 8ff2e2d75b Core/Creatures: Fixed crash in CreatureAI::JustAppeared caused by scripted summons without SummonProperties
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c00109756815b6888303b31748595521fd7809c)
2021-12-24 20:25:47 -05:00
hondacrx d255912aa6 Core/AI: minimize further undesired behaviours
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7e544e81626ab477024c057e3e7a2a45083f3a7)
2021-12-24 20:22:19 -05:00
hondacrx bd3768c4ef AI/TotemAI: Tell Shaman Totems to stay put and stop moving.
Port From (https://github.com/TrinityCore/TrinityCore/commit/007eb8c9311320217fdda0bc0e6c05044254edfe)
2021-12-24 20:20:05 -05:00
hondacrx 925119c2ca AI/SmartAI: Properly forward to inherited CreatureAI::JustAppeared in SmartAI::JustAppeared.
Port From (https://github.com/TrinityCore/TrinityCore/commit/743d022cee936d47a60f23e72fda7fb72ee61907)
2021-12-24 20:16:01 -05:00
hondacrx 3cf7f6b831 Combat/Threat: Split ThreatManager::NotifyDisengaged off from ThreatManager::ClearAllThreat. NotifyDisengaged signifies intent to clear the engagement flag, and should only be called from AI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/38d7c1530a65a7ff1bd10775c4a35269b2416538)
2021-12-24 20:15:10 -05:00
hondacrx 3c38758f09 AI/SmartAI: Move SMART_EVENT_RESPAWN invocation from ::InitializeAI() to ::JustAppeared().
Port From (https://github.com/TrinityCore/TrinityCore/commit/e398bb16648b483c97a68b2a29b25173b2a71261)
2021-12-23 20:24:47 -05:00
hondacrx 2d87d0c75d Core/AI: Remove EnterEvadeMode calls from Guardian/Summon spell handlers. Add follow logic to CreatureAI::JustAppeared.
Port From (https://github.com/TrinityCore/TrinityCore/commit/9f7d3ebd6a474c2e325698b1665ab2939926cab6)
2021-12-23 20:23:16 -05:00
hondacrx e28b42b270 Entities/Unit: Fix an issue where Unit pointers could be left dangling if a channeled Charm was interrupted by a control aura application.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d10554da14fb8371072567f673c9f919cbe6b929)
2021-12-23 20:19:55 -05:00
hondacrx 1f58dc2b53 Entities/Unit: Cleanup all the direct accesses to m_unitMovedByMe. Refactor the field to be protected. Add assertions to catch dangling pointers.
Port From (https://github.com/TrinityCore/TrinityCore/commit/edc75831194bc2419e3abada47121fadf4b2aa8d)
2021-12-23 20:17:08 -05:00
hondacrx 4584543d45 some more cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/f29644efd5cf430c321ad68122c385b4535069da)
2021-12-23 20:03:50 -05:00
hondacrx cd1edd609f Core/Creature: Attach out-of-combat health regen to the Engaged system, not the Combat flag.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e3411b4740be2241c49361f9f6223f52f4389c7d)
2021-12-23 20:03:03 -05:00
hondacrx 749b77d060 Core/Misc: Rename Unit::AttackedTarget to Unit::AtTargetAttacked to match naming scheme for these notifiers
Port From (https://github.com/TrinityCore/TrinityCore/commit/dabdad3b47d7438327d3ee861eddd68e9bea68b1)
2021-12-23 20:02:14 -05:00
hondacrx 8694a2ae24 Core/Entities: Kick engagement logic upstairs to Unit (from ThreatManager), since all Units with AI need it (not just those with threat list).
Port From (https://github.com/TrinityCore/TrinityCore/commit/35e55f10899712435102764671241b94a2026599)
2021-12-23 20:00:45 -05:00
hondacrx ff48f2cab9 Core/Instance : Fix instance resetting exploit
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c3c59d7fac0abb02cc1fb433338737ea119831d)
2021-12-22 20:54:24 -05:00
hondacrx 8a64e18f31 Oops clicked too soon. 2021-12-22 20:47:37 -05:00
hondacrx 74c88b43b3 Scripts/Spells: Migrate Teleporting to Script
Port From (https://github.com/TrinityCore/TrinityCore/commit/8fc52bc5e542ab5a572343c64e915d01cf363b76)
2021-12-22 20:39:59 -05:00
hondacrx f21472958d Spell/Fishing: ensure that the fishing bobber expires when the Fishing channeling ends, and don't allow fish to be hooked in the instant the spell is cast.
Port From (https://github.com/TrinityCore/TrinityCore/commit/07dcb28f80b958e7dd5784a074f7ed013527d92f)
2021-12-22 20:33:47 -05:00
hondacrx 8b23a77c5f Core/Loot: don't allow to regenerate chest loot inside instances and raids.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bfef73b5102201e85a31b39ae595da42d9750c7e)
2021-12-22 20:32:04 -05:00
hondacrx 97730e14ad Core/Conditions: Sync CONDITION_QUEST_OBJECTIVE_PROGRESS implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/3d3d255a47725398fd4d011a1a01eee141691ec4)
2021-12-22 20:30:31 -05:00
hondacrx ca64ca25f6 Core/FlightPath: teleport players at destination on floor Z when the flight ends
Port From (https://github.com/TrinityCore/TrinityCore/commit/a032d84cf4cf8aca262e6ca6352ad1e82b3e245f)
2021-12-22 20:25:56 -05:00
hondacrx 7a4882731d Core/SAI: allow to start waypoint movement for a creature that is in combat.
Port From (https://github.com/TrinityCore/TrinityCore/commit/5331656785a2b76c060c4e8d4cfb3938c8559efc)
2021-12-22 20:24:27 -05:00
hondacrx 8510f01035 Misc fixes 2021-12-22 20:23:48 -05:00
hondacrx c38509222c Core/Spell: Jump Speed Calculations
Port From (https://github.com/TrinityCore/TrinityCore/commit/f15bcebdbe42acb72d2d9165cd8091e9a61f5909)
2021-12-22 20:22:58 -05:00
hondacrx 79e33b6a4a Core/Misc: don't allow FindNearestCreature() and FindNearestGameObject() searches to return the entity that called them.
Port From (https://github.com/TrinityCore/TrinityCore/commit/2bcfc6680c899ac4e94d71c7b864379ce69f9654)
2021-12-22 20:16:49 -05:00
hondacrx 6a295f7fe4 Core/SAI: add cooldownMin (event_param2) and cooldownMax (event_param3) to SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7745e3f94389cf22cf9be04b411e94936306a6f6)
2021-12-22 20:13:01 -05:00
hondacrx 2cbed03883 Core/SAI: don't allow to start a new SAI actionlist while the entity is already running one.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e846d4c3ef04d75839325409df109156d8ccced0)
2021-12-22 20:09:35 -05:00
hondacrx 47ddf51999 Core/RDF: fix counting issue with the achievement Looking for More (and similar)
Port From (https://github.com/TrinityCore/TrinityCore/commit/01be9f44af0687f03c34f0221dc285ec22803969)
2021-12-17 19:46:25 -05:00
hondacrx 3bae896803 Core/Loot: fix some other cases where a creature should not be able to set focus.
Port From (https://github.com/TrinityCore/TrinityCore/commit/3278f87789b8357ce888ab61026c0ca6daa8e6cb)
2021-12-17 19:41:25 -05:00
hondacrx fc95164995 Core/Unit: Ignore On Transport spline movements if the Unit isn't on a transport anymore
Port From (https://github.com/TrinityCore/TrinityCore/commit/134fa225108381969b4a7dc22b4a3076a79c21f6)
2021-12-17 19:39:58 -05:00
hondacrx aeb266b090 Core/Misc: Change some logs from INFO to ERROR when loading invalid creature template resistances and spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/0c1f707ca580fe60134092dba4e690def55762a7)
2021-12-17 19:38:23 -05:00
hondacrx 85f24d047e Core/Player: Fix teleporting FlyPath dismounting the player
Port From (https://github.com/TrinityCore/TrinityCore/commit/2d7ec53330bda17704cf46a88785f40b95ce3bfb)
2021-12-17 19:37:23 -05:00
hondacrx 8f24c82944 Core/Loot: make Loot::AddItem() honor LootItem::AllowedForPlayer() so that items that cannot be looted don't prevent skinning.
Port From (https://github.com/TrinityCore/TrinityCore/commit/ef4d4e3d98eeb1edb2e0eb5dc92ba40aea9996f7)
2021-12-17 19:36:36 -05:00
hondacrx 1bd33fce8e Core/Loot: implement automatic pass in group loot for items that cannot be looted.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1c8f94a14f51e5ddfd0eb277e2b709da274e654d)
2021-12-17 19:33:22 -05:00
hondacrx b349f922b2 Core/Spells: don't allow spells with SPELL_EFFECT_CREATE_LOOT to be cast if there isn't enough space in inventory
Port From (https://github.com/TrinityCore/TrinityCore/commit/59da957165ef7d7529db30f90a30dc401d682052)
2021-12-17 19:26:43 -05:00
hondacrx 112803c149 Core/Creature: prevent dead creatures from setting a focus target, so they won't turn when hit by certain spells.
Port From (https://github.com/TrinityCore/TrinityCore/commit/264373bb656352a0cdf9b18bad4f3929c7376a9c)
2021-12-17 19:17:29 -05:00
hondacrx b367f70d6c Core/CreatureTemplate: Outsourced resistances and spells into creature
Port From (https://github.com/TrinityCore/TrinityCore/commit/7a8d15d63bb1178457df25f37a29e020e5183631)
2021-12-17 19:16:52 -05:00
hondacrx 05e3cfc118 Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes
Port From (https://github.com/TrinityCore/TrinityCore/commit/cc141e9bad5dc06a56179f820670bd6944651804)
2021-12-17 19:04:23 -05:00
hondacrx 1021eadd36 Core/Loot: fix some issues with master loot and don't allow players to see soulbound recipes that they already learned in the loot window.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7b346bcf8d4c4b39685a46ef09f389c8a317b566)
2021-12-17 18:44:59 -05:00
hondacrx 853b589348 game event respawn
Port From (https://github.com/TrinityCore/TrinityCore/commit/4e7727d575f2c22dddc6327d89e0cfecb9b9748e)
2021-12-17 17:55:34 -05:00
hondacrx d5aa3ed8ab Core/Spell: allow Northrend Inscription Research to unlock three recipes the first time it is cast.
Port From (https://github.com/TrinityCore/TrinityCore/commit/6b7bc82641e0cb7cf8add1089d8dde0aad93edbe)
2021-12-17 17:52:44 -05:00
hondacrx 613fa25096 Core/Player: allow AutoStoreLoot to specify if the looted item should be shown as if created by the player.
Port From (https://github.com/TrinityCore/TrinityCore/commit/81a8366ce5659f3556a0b910a0437256d95b62f9)
2021-12-17 17:47:14 -05:00
hondacrx b84f88d98f Core/Player: Remove all Motion Masters when teleporting
Port From (https://github.com/TrinityCore/TrinityCore/commit/ab3edebb5d824f7cb0d030daba168e2bb7900511)
2021-12-17 17:44:45 -05:00
hondacrx f1bfc12b9d Core/Logs: Allow to log startup logs into Database appender
Port From (https://github.com/TrinityCore/TrinityCore/commit/6303c7bcb1f1078fb036f10c97cab268f8261a4e)
2021-12-17 17:42:36 -05:00
hondacrx 5caa50ad4b Core/Logging: Split logs for unknown and zero triggered spells
Port From (https://github.com/TrinityCore/TrinityCore/commit/dd4da6ce5bc3caf3d176e40303782fd20a98ec1e)
2021-12-17 17:39:33 -05:00
hondacrx f91842d6f2 Spell/Script: Stasis Field
Port From (https://github.com/TrinityCore/TrinityCore/commit/adb5535483cf202572ae34065959aa94cf0304e8)
2021-12-17 17:29:27 -05:00
hondacrx 6035dc5224 Script/Creature: calculate Traveler's Tundra Mammoth's NPCs' exit position based on current player's position
Port From (https://github.com/TrinityCore/TrinityCore/commit/b3e7be5387f1350c7eefe242b6da8b2caa8447d1)
2021-12-17 17:20:01 -05:00