Commit Graph

324 Commits

Author SHA1 Message Date
hondacrx bddde92a0f Entities/Player: Clean up client control handling behavior around possession. Mind Control should no longer cause various weirdness.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bba4696de715b79b31e154d1a8e1597507812ece)
2021-12-26 19:54:55 -05:00
hondacrx 6d73a59f63 Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender
Port From (https://github.com/TrinityCore/TrinityCore/commit/27886c7f5d6cfc221ea67aab210f96859d725e05)
2021-12-26 19:51:26 -05:00
hondacrx a75bc5188f Core/Spell: allow damage from binary spells to go through elemental resistance's damage reduction.
Port From (https://github.com/TrinityCore/TrinityCore/commit/09e849bb69561fe91a9b8c1aa72555eb6c65d0b2)
2021-12-24 21:05:41 -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 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 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 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 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 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 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 dcd4dc4226 Remove Deprecated code
Port From (https://github.com/TrinityCore/TrinityCore/commit/1ced6d219236084412e9e76dbbbf1eb615efa920)
2021-12-07 14:18:01 -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 c64c115f7e Core: Remove wrong emotes played in combat
Port From (https://github.com/TrinityCore/TrinityCore/commit/f7048afac12f89464f5445bdc0bb25c48bebf721)
2021-11-29 17:19:10 -05:00
hondacrx 06be062d91 Core/Spell: SpellAura Redux
Port From (https://github.com/TrinityCore/TrinityCore/commit/f7299dce9770a5b4a3a5ab289e930a390aa0407a)
2021-11-29 14:38:37 -05:00
hondacrx 195fe6316e Core/Units: Only update height in SetHover if unit is bellow HoverHeight
Port From (https://github.com/TrinityCore/TrinityCore/commit/10c915dd34ee94b267b92eef49cd0ecd22d643bf)
2021-11-23 22:46:44 -05:00
hondacrx e46fde9cdd Core/Spells: Fix assert triggered
Port From (https://github.com/TrinityCore/TrinityCore/commit/e475cac63134be27d0902cb0d3efd869217bb464)
2021-11-23 22:28:11 -05:00
hondacrx ebc28748b9 Core/Spells: Fix assert triggered
Port From (https://github.com/TrinityCore/TrinityCore/commit/36468203ddf9adb1a4c64f663aff6505701b8fb6)
2021-11-23 21:35:00 -05:00
hondacrx 044359a6b7 Core/Units: Fixed crash with charm/possess
Port From (https://github.com/TrinityCore/TrinityCore/commit/de8e1a4820ec5b3523209f89e7519e27b53060e2)
2021-11-23 21:22:57 -05:00
hondacrx 73aa366f31 UnitAI updates
Port From (https://github.com/TrinityCore/TrinityCore/commit/ed884354944009979b828d21ee3498e830050af8)
2021-11-23 21:22:07 -05:00
hondacrx 0a8541a39c Core/BattlePets: Implemented battle pet name query packet
Port From (https://github.com/TrinityCore/TrinityCore/commit/8614690e27df8197586cc702760409293f3f6c3d)
2021-11-23 15:07:17 -05:00
hondacrx 8af9676c7b Core/Movement: Temporarily disable "no state change" checks in Unit::SetFeatherFall and Unit::SetCanTurnWhileFalling
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4630c5354ae1c295bc48b085c44ea20dad32f4d)
2021-11-23 14:37:59 -05:00
hondacrx 0a2425a790 Core/Spells: Fixed unapplying rockbiter weapon
Port From (https://github.com/TrinityCore/TrinityCore/commit/ba2586c92f87230c6380d7a2fe2d52c52471b9cb)
2021-11-18 20:16:46 -05:00
hondacrx 93c8f9bd2e DB Updates and Fixes 2021-11-16 23:29:48 -05:00
hondacrx e8b8d2c1bb Core/Units: Fixed crash happening when charm was removed by its own charmed AI during update
Port From (https://github.com/TrinityCore/TrinityCore/commit/f3c1b27c266e2857214a087fdd9339e06dbedf5e)
2021-11-16 23:26:08 -05:00
hondacrx bc84e62688 Core/AI: Add some checks to catch if the AI changes mid-update for players.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1015f307041b25b47a9bb4bc76ac4ed78c49d735)
2021-11-15 23:22:08 -05:00
hondacrx 593a4b9df8 Core/Creatures: Changed creatures to become tagged by player doing any action that causes creature aggro (apart from distance)
Port From (https://github.com/TrinityCore/TrinityCore/commit/1232f1d06e21ba0bfb0e956b8e957780cd5985c2)
2021-11-15 23:15:26 -05:00
hondacrx c48696da32 Core/Player: Clean up duel related code. Fix a check for abusive client behavior, code style.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7c062db94b1c2d28329c5f0ddc2fee74a6c07c35)
2021-11-15 19:56:36 -05:00
hondacrx b026ee7ef8 More cleanups of custom classes in favor of .NET runtime types. 2021-11-15 18:04:57 -05:00
hondacrx 563ab5da05 Core/Auras: Implement SpellAuraInterruptFlags2::Ground and SpellAuraInterruptFlags2::Swimming
Port From (https://github.com/TrinityCore/TrinityCore/commit/107f5ce0a40fdbd325cdb467baaee841d39e0958)
2021-11-08 10:49:00 -05:00
hondacrx 80d6b08c13 Core/Movement: Corrected values sent in knockback packet when speedXY < 0
Port From (https://github.com/TrinityCore/TrinityCore/commit/732a8ee26199d7f04c692fa64f96955db13cf69d)
2021-11-08 10:44:57 -05:00
hondacrx 7f668d03b3 Core/Auras: Mount speed auras are now properly selected when teleporting (dungeon enter/exit, regular teleport, ...)
Port From (https://github.com/TrinityCore/TrinityCore/commit/3010f2ca5dea532c851d5472157bbfdf0531e0d0)
2021-11-07 21:12:53 -05:00
hondacrx 3335ae937d Core/Threat: Fear no longer suppresses threat. All confuse effects now suppress threat, even ones that wouldn't break on damage.
Port From (https://github.com/TrinityCore/TrinityCore/commit/55cb4f9a6d614943ffe70b7e17ca74aeeafe3a18)
2021-11-02 14:29:49 -04:00
hondacrx 5e29a231c9 Core/Entities: Fixed an issue where creatures would not properly assist formation members in certain scenarios.
Port From (https://github.com/TrinityCore/TrinityCore/commit/00b9c23e28dc19a3a9f45d1d5b86d203f55b2a7e)
2021-11-02 14:16:25 -04:00
hondacrx 78a466e5b6 Core/Unit: Some charm fixes:
Port From (https://github.com/TrinityCore/TrinityCore/commit/34f9666f209ab3f281bf81de92c4bc1a164b0059)
2021-11-02 14:14:58 -04:00
hondacrx 0e1eeba55a Misc fixes 2021-11-02 13:24:16 -04:00
hondacrx 1e4fa35ac2 Core/Unit: Random code style/naming adjustments
Port From (https://github.com/TrinityCore/TrinityCore/commit/05119fd90949340cad4a700d12069154a2faf5f6)
2021-11-01 12:09:07 -04:00
hondacrx 3f684eadf9 Core/Threat: Threat system adjustments
Port From (https://github.com/TrinityCore/TrinityCore/commit/392a644dc8562ea54b9c185a2776fceb1006e2cd)
2021-11-01 12:04:49 -04:00
hondacrx 9b99019d44 Core/Unit: Inline some unnecessary helpers.
Port From (https://github.com/TrinityCore/TrinityCore/commit/395f58d651c7c370522ead6ba9a3c684d91e3a66)
2021-11-01 11:26:40 -04:00
hondacrx ffb04bffc0 Core/Unit: Store charmer and charmed pointers on Unit directly, no more map lookups for Unit::GetCharmer and Unit::GetCharmed
Port From (https://github.com/TrinityCore/TrinityCore/commit/a5989dcee9150565e7f4b8e3f7a62a414a484a3f)
2021-11-01 11:19:47 -04:00
hondacrx 1e1364b379 Core/Unit: Acquire GetControllingPlayer. Use to fix duel bugs.
Port From (https://github.com/TrinityCore/TrinityCore/commit/070bbb6707028d8c445c8e408d391f80df011d53)
2021-10-31 14:04:49 -04:00
hondacrx 26940fa650 Core/AI: Clean up charm AI handling.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4e8c1c59c8b37216814526b4d2551f23934f465)
2021-10-31 13:55:26 -04:00
hondacrx 68c4407840 Core/Auras: Implemented SPELL_AURA_CAST_WHILE_WALKING_BY_SPELL_LABEL and SPELL_AURA_CAST_WHILE_WALKING_ALL
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e81db7b9380269d4561eb5deb21fbef26913779)
2021-10-16 18:33:43 -04:00
hondacrx e9c6424cd8 Core/BattlePets: Misc fixes
Port From (https://github.com/TrinityCore/TrinityCore/commit/11cc5c0d3bd46b5e68bb549625ef9ca7294deb21)
2021-10-16 18:12:25 -04:00
hondacrx 512e05f12e Core/Units: Added possibility to send emotes to single players
Port From (https://github.com/TrinityCore/TrinityCore/commit/4a6308f5f0737cd42d381096573763459c8393be)
2021-10-13 10:08:56 -04:00
hondacrx 72018b983c Core/AI: Add a new LeavingWorld AI hook
Port From (https://github.com/TrinityCore/TrinityCore/commit/2642fb1a489e4b79a17bbb63127c8b3ce2823e1e)
2021-10-08 10:33:53 -04:00