Commit Graph

915 Commits

Author SHA1 Message Date
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 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 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 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 8510f01035 Misc fixes 2021-12-22 20:23:48 -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 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 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 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 da41af6279 Core/BattlePets: Improvements when enabling battle pets
Port From (https://github.com/TrinityCore/TrinityCore/commit/0a8f79ad5ad5afbf6a6aedc9ad46c3b774877b31)
2021-12-16 13:10:24 -05:00
hondacrx f7023cb290 Core/Spells: Implemented SPELL_ATTR1_CAST_WHEN_LEARNED
Port From (https://github.com/TrinityCore/TrinityCore/commit/747da1f804a05462fb0d542a9570f27a549688dc)
2021-12-16 13:00:53 -05:00
hondacrx 599eb14a16 Core/Map: Don't log errors about Area ID 0
Port From (https://github.com/TrinityCore/TrinityCore/commit/efbb6f5b7d66c31671aed47881825b6baa6f5019)
2021-12-16 12:59:09 -05:00
hondacrx 736892998f Core/Misc: don't allow players to use/activate/loot non-allowed gameobjects while under the effect of a damage immunity aura
Port From (https://github.com/TrinityCore/TrinityCore/commit/9d865f7536ae6feda6fba77785e4548f95ca5d03)
2021-12-16 12:56:20 -05:00
hondacrx 40f6c9a9fd Core/Script: add script hook to allow overriding of a vehicle passenger's exit position
Port From (https://github.com/TrinityCore/TrinityCore/commit/1edd93bc0c443cdabc104af9f440e07b6d473a08)
2021-12-16 12:47:54 -05:00
hondacrx a39fdef7c3 Core/Players: out of range group updates will now get sent every 5 seconds instead of as soon as they are available to reflect retail behaivior.
Port From (https://github.com/TrinityCore/TrinityCore/commit/0d433b1bc89bf26585688d8041da500ff8dae364)
2021-12-16 12:42:19 -05:00
hondacrx 85359b129f Core/GameObjects: goober gameobjects may reset only if they have a lock id or a reset time specified
Port From (https://github.com/TrinityCore/TrinityCore/commit/09fe78dd59095fa31b83a846d5fcbb53dd3afb1b)
2021-12-16 12:38:00 -05:00
hondacrx 24b0f058a9 Core/AreaTriggers: Added helper static function AreaTrigger::CreateNewMovementForceId for use in scripts with movement forces
Port From (https://github.com/TrinityCore/TrinityCore/commit/df2d0f3670dcaa06ec0289631fbf2a582a8b69b1)
2021-12-16 12:33:53 -05:00
hondacrx f77b631422 Core/Movement: Defined movement force type enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/e2de5000acba888e2ae3177893f6063340902ffd)
2021-12-10 17:33:33 -05:00
hondacrx c37e1c9f7d gameobject summoner
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f545f540216d3b94c26e4aeda50c8bb8d5c3d74)
2021-12-07 20:42:47 -05:00
hondacrx e9dc31b104 Core/Creature: equipment_id field on creature table is not working correctly, if it's set to 0 the npc still spawn with the equipement.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1d22ade73f5108bd1e0c2dddb8149a93791cc79f)
2021-12-07 17:55:28 -05:00
hondacrx 7c223b9a47 Core/Spells: Return CheckCast result from CastSpell
Port From (https://github.com/TrinityCore/TrinityCore/commit/ab988dc98284285b8ed0253f0bca1ddeb7eb9982)
2021-12-07 17:31:24 -05:00
hondacrx 137546769e Core/Quest: improve source item deletion logic for items that give quests
Port From (https://github.com/TrinityCore/TrinityCore/commit/558772a0bc7e0d8b768a5b1778a9d598a2288f6f)
2021-12-07 17:24:31 -05:00
hondacrx 552f12655e Core/AreaTriggers: Move ScriptName from areatrigger_template to areatrigger_create_properties and areatrigger tables
Port From (https://github.com/TrinityCore/TrinityCore/commit/77ddb4da816b4dfc7ff03b79b88b5ca80918bc2d)
2021-12-07 17:21:58 -05:00
hondacrx ab828b2cb6 Core/Quests: Allow more objects to update their dynamicflags in Player::UpdateForQuestWorldObjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/6e5f35a14ce0b894d95434f27fab8f7d0ba6dedc)
2021-12-07 17:07:38 -05:00
hondacrx c1fd2cef37 Core/Quests: Optimize Player::HasQuestForGO
Port From (https://github.com/TrinityCore/TrinityCore/commit/eb834272cb0c0a1b1bb102bcee1b2a18b27f862d)
2021-12-07 17:03:53 -05:00
hondacrx 2ccf5b05e8 Core/Conditions: Added CONDITION_SOURCE_TYPE_TRAINER_SPELL
Port From (https://github.com/TrinityCore/TrinityCore/commit/0d0f9784a92245879c1e98b011dc112b1b8bb76b)
2021-12-07 16:49:45 -05:00
hondacrx 6976fd649d Core/Units: Send PlayHoverAnim state in CreateObject if enabled by Unit::SetPlayHoverAnim
Port From (https://github.com/TrinityCore/TrinityCore/commit/7e779a6f5955de96dc1baa2f48b1bb15ad9bc343)
2021-12-07 14:26:39 -05:00
hondacrx 0e8e2b7cc5 Core/Achievement: fix mistake related to ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM.
Port From (https://github.com/TrinityCore/TrinityCore/commit/238726b8241adea7819fe93f1af7bec8bd77f6e1)
2021-12-07 14:21:57 -05:00
hondacrx 7af628bccc Core/Achievement: correctly credit progress for skill-related achievements when learning a new skill.
Port From (https://github.com/TrinityCore/TrinityCore/commit/3264ef1f75af2430301050df3831e20c51ecf512)
2021-12-07 14:21:03 -05:00
hondacrx 754ac90d50 Core/Misc: Apply fatigue when flying too
Port From (https://github.com/TrinityCore/TrinityCore/commit/eb25fbd485ccf7791fff415d5e0aaf5cb8329584)
2021-12-07 14:18:39 -05:00
hondacrx dcd4dc4226 Remove Deprecated code
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ced6d219236084412e9e76dbbbf1eb615efa920)
2021-12-07 14:18:01 -05:00
hondacrx a2fdd2eccf Core/Vehicles: Fix multiple vehicle join events on same seat
Port From (https://github.com/TrinityCore/TrinityCore/commit/910e0b70ef463459e2e1b59976c9675394ff81c8)
2021-12-07 14:15:44 -05:00
hondacrx 2ded315eaa Core/Object: Range check vol. 2
Port From (https://github.com/TrinityCore/TrinityCore/commit/a13a765610d964a3aa1bab1b41331c05e24a1f78)
2021-12-07 13:53:35 -05:00
hondacrx eb8535b7b2 Core/Creature: couple refactors/renaming
Port From (https://github.com/TrinityCore/TrinityCore/commit/c22431936e5bd65474aca4c1fd71e315a20c34cb)
2021-12-07 13:41:20 -05:00
hondacrx d705730f04 Core/Entities: Implemented ObjectGuid::FromString
Port From (https://github.com/TrinityCore/TrinityCore/commit/8b74ca04fe52a99730c517cc5138e082e6fddb1a)
2021-12-07 12:33:34 -05:00
hondacrx a96fe1e47f Core/Movement: Add time synchronisation (Needs tested)
Port From (https://github.com/TrinityCore/TrinityCore/commit/c19a4db1c12b8864d6c486ee8e2f0e058fb4155a)
2021-12-02 22:34:04 -05:00
hondacrx f5695f0cf2 MMaps Updates, Needs tested.
Port From (https://github.com/TrinityCore/TrinityCore)
2021-12-02 14:50:55 -05:00
hondacrx f265073720 Misc Fixes 2021-12-01 23:08:19 -05:00
hondacrx 0f030d61cf Core/Commands: Fix .cheat god command letting you die
Port From (https://github.com/TrinityCore/TrinityCore/commit/519e3c9ab718ce50dbaf66a50d15f5ead2dc9885)
2021-12-01 22:59:43 -05:00
hondacrx 7f5dfd0025 Core/Maps: Fix crash caused by setActive(false) called after DespawnOrUnsummon()
Port From (https://github.com/TrinityCore/TrinityCore/commit/dd825c56148ed9530e4a314bc91f29ddc86b7122)
2021-12-01 22:59:01 -05:00