Commit Graph

77 Commits

Author SHA1 Message Date
hondacrx 536f72d077 Core/Creatures: Implemented CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY (ignore SPELL_EFFECT_SANCTUARY, used by Vanish)
Port From (https://github.com/TrinityCore/TrinityCore/commit/1369b8708458fb5020b6ab7a9608123459d4eb26)
2024-03-05 18:33:31 -05:00
hondacrx d175373d44 Core/Creatures: Implemented CREATURE_STATIC_FLAG_3_NO_THREAT_FEEDBACK
Port From (https://github.com/TrinityCore/TrinityCore/commit/3fd1a2b78c8791576679e93ce1d43038db2212c5)
2024-02-21 18:03:12 -05:00
hondacrx cda53c8e7f Some cleanups. (might break build for scripts as they are a WIP) 2023-10-08 10:35:31 -04:00
hondacrx 8c2d3496fb Core/Units: Fixed possible use after free in ThreatManager
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e3968b63c4192b766de69c8f4744adba406c94b)
2023-09-14 04:28:04 -04:00
hondacrx f73e64396f Update license headers for all files. 2023-01-18 17:25:32 -05:00
hondacrx a5cfd149b7 Core/Combat: Allow PvE combat references to become suppressed, just like PvP ones
Port From (https://github.com/TrinityCore/TrinityCore/commit/9bfc29f4aff01cd7f366faffcda0a84071970d6a)
2022-09-07 13:23:53 -04:00
hondacrx df33c48826 Core/Spells: Delay combat flagging for spell targets until spell missile lands
Port From (https://github.com/TrinityCore/TrinityCore/commit/ff99952dfb7d2b532de2d1aedc825fb96038f4c2)
2022-09-07 13:14:36 -04:00
hondacrx a164362caa Misc fixes 2022-08-04 18:06:54 -04:00
hondacrx 62c2d34f1a Core/Spells: Rename SpellAttr4 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/8d16a79dea4c0100d36e13b068c42499a3a48154)
2022-06-01 13:37:39 -04:00
hondacrx 8cddeb0fc5 Core/Spells: Rename SpellAttr3 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/88d7b58a3dd8b0eb95c233a20c1608ddce73d9ea)
2022-06-01 13:01:55 -04:00
hondacrx 442da7511f Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag
Port From (https://github.com/TrinityCore/TrinityCore/commit/b47185cabfbdeeaf492bf2303635db07ce703785)
2022-05-30 16:12:11 -04:00
hondacrx 2276940252 Core/Combat: Fixed combat after remove charm
Port From (https://github.com/TrinityCore/TrinityCore/commit/4ed918fcb38d7fd3752899a0eafd7ad62b7217af)
2022-05-30 13:26:37 -04:00
hondacrx 988dc2b99c Core/Combat: Allow refresh pvp combat when assisting a unit that is in pvp combat
Port From (https://github.com/TrinityCore/TrinityCore/commit/b6615a45eb00a3127a11bf97a1fef1a7d81f39c7)
2022-05-29 16:20:27 -04:00
hondacrx 4de86618f3 Core/Creature: rename CREATURE_FLAG_EXTRA_IGNORE_COMBAT into CREATURE_FLAG_EXTRA_CANNOT_ENTER_COMBAT
Port From (https://github.com/TrinityCore/TrinityCore/commit/53d19b09f4de7c092747663ae7e1a01c0df553bf)
2022-05-29 16:18:29 -04:00
hondacrx 0b38096d10 Core/Units: add new functionality for units to block or enable combat interactions
Port From (https://github.com/TrinityCore/TrinityCore/commit/2819951dce545438724719836e3a13d3039b8690)
2022-03-03 13:26:46 -05:00
hondacrx 042bfc12e5 Convert alot of methods to use TimeSpan. 2022-03-01 23:47:53 -05:00
hondacrx 6f1b2f5cd5 Core/Combat: Disable triggers entering combat
Port From (https://github.com/TrinityCore/TrinityCore/commit/1dfcb7086e17902f0904ee6c09bc55a229b65cc1)
2022-03-01 17:38:12 -05:00
hondacrx 93389f32e2 Scripts/ICC: little bit of cleanup in Valithria after the "recent" changes
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7571e5d1f3b4cd5672a6344d96c782d7c83ea88)
2022-01-05 23:58:58 -05:00
hondacrx 97ce4d6db7 Misc fixes and missed stuff. 2022-01-04 17:37:55 -05:00
hondacrx 0ae91739bc Core/Threat: Properly update offline states even if all threat references are offline.
Port From (https://github.com/TrinityCore/TrinityCore/commit/0e13ed412a304e91a24eded6c31842dbb7ea53de)
2022-01-01 17:57:13 -05:00
hondacrx 077cdc5d23 Core/AI: No longer override chase movement with follow movement if the creature engages before JustAppeared has had a chance to fire.
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4c2c0fb1d1b9fae832ecc52aa68fe3fb8d1ca52)
2022-01-01 17:08:13 -05:00
hondacrx 2842cc9c91 Core/AI: Finally move the "is creature engaged" flag to be a property of the creature AI, where it honestly always belonged.
Port From (https://github.com/TrinityCore/TrinityCore/commit/c13d83796f7b2111c5dcf8546bdd84eccd232ae3)
2022-01-01 17:05:29 -05:00
hondacrx 639f5cc75d Entities/Unit: Properly unset engaged flag for creates that cannot have a threat list on combat exit.
Port From (https://github.com/TrinityCore/TrinityCore/commit/513b35ea2f7f679585e34a490685327c449e574b)
2021-12-26 19:57:05 -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 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 d5911e1c92 Misc fixes. 2021-11-14 16:48:38 -05:00
hondacrx 02ad0a2284 Core/Threat: Properly sequence checking offline state _after_ adding the reference to the threat list. This ensures IsEngagedWith reports consistent values for downstack calls in Creature.
Port From (https://github.com/TrinityCore/TrinityCore/commit/35e53839291c3782acca46d2f88f84b86d6e15b1)
2021-11-03 11:50:57 -04:00
hondacrx e255a0b3e5 Core/Threat: Suppressed threat is now re-evaluated on taunt state update, and taunting units can no longer be suppressed.
Port From (https://github.com/TrinityCore/TrinityCore/commit/c323758631fe5e414e7e2bb002b5ba89aa449834)
2021-11-03 11:07:12 -04: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 ed85016d00 Core/Threat: Only send SMSG_THREAT_UPDATE if the threat list actually changed
Port From (https://github.com/TrinityCore/TrinityCore/commit/b6f4b5340792bfdf5f73c6bccd3a5f4a926f00fa)
2021-11-02 13:30:59 -04:00
hondacrx 0e1eeba55a Misc fixes 2021-11-02 13:24:16 -04:00
hondacrx 9edca0bd50 Core/Threat: Further tweak to assist threat, all CC now prevents assist threat splitting (not just damage-breakable CC)
Port From (https://github.com/TrinityCore/TrinityCore/commit/7a503ff597bf07c12202c510de8245b76755b668)
2021-11-01 12:10:04 -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 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 7050fda482 Core/Creature: Fall back to combat list if calling for help without threat list
Port From (https://github.com/TrinityCore/TrinityCore/commit/6a91fe3fbe28e3bf36ab6107b9c6cbb842f65262)
2021-10-30 20:22:04 -04:00
hondacrx aa5994f457 Core/Threat: Re-add fixate system. I am being told Netherspite needs it.
Port From (https://github.com/TrinityCore/TrinityCore/commit/16eb5032ad0e8fbc9cd9d3229be65a8f0190347b)
2021-09-26 14:23:30 -04:00
hondacrx 889e0570f0 Core/Threat: Fix taunt behavior in some edge cases
Port From (https://github.com/TrinityCore/TrinityCore/commit/4634cfaa9f1e7064147f2c81a146234405f4e121)
2021-09-26 14:15:27 -04:00
hondacrx 9afc755dec Core/Unit: UNIT_FLAG renames
Port From (https://github.com/TrinityCore/TrinityCore/commit/f1ac141f25500a0f6ffd3c32b1185de2d9f9c940)
2021-09-26 14:00:30 -04:00
hondacrx 37fd6936fd Core/Threat: Fix taunt logic relying on unspecified behavior by unordered boost heap iterators. Use ordered iterators instead, this is cheap for our use case anyway. This will make taunt behave consistently again.
Port From (https://github.com/TrinityCore/TrinityCore/commit/74cdf260e1e37d54ac1ce2045f05a2e50f7eceaa)
2021-08-09 10:27:17 -04:00
hondacrx c168c6b145 Fixes one crash 2021-06-28 20:14:20 -04:00
hondacrx 545dcd4f7a Core/Combat: Unify combat permitted checks between CvC and PvC - only require "not friendly" in all cases. Fixes Yogg-Saron encounter.
Port From (https://github.com/TrinityCore/TrinityCore/commit/f982f3019a1a12bdd9d85e59faf5ddb53c10761f)
2021-06-23 23:37:42 -04:00
hondacrx 7cbfcf9949 Combat/Threat: Now set engaged state for all units on offline reference registration (vanished/invis'd units). For non-PASSIVE units, this will immediately cause an evade.
Port From (https://github.com/TrinityCore/TrinityCore/commit/fdc1c5b6c952262f98f15f35dcf19fe293c65d5b)
2021-06-23 15:14:51 -04:00
hondacrx f7e09403ec Core/Threat: Assistance threat (healing, buffs, etc.) is now properly split (instead of copied) between all creatures threatened by the action. Thanks to Foereaper for help with testing, and my apologies to healers everywhere.
Port From (https://github.com/TrinityCore/TrinityCore/commit/73bf0e3a0b1f93d8dab719194b4aa5bf746cb969)
2021-06-23 13:31:01 -04:00
hondacrx 9631f569fa Core/Threat: Passive creatures now properly become engaged when adding an offline threat entry. Fixes RoS and Thaddius, maybe more.
Port From (https://github.com/TrinityCore/TrinityCore/commit/9f91cf23ab8ab5f4fe35cba2e504d299248c4e60)
2021-06-23 13:29:40 -04:00
hondacrx 1c9eeb403a Core/Threat: Fix a potential crash that would occur in specific edge cases of AI being a bit naughty.
Port From (https://github.com/TrinityCore/TrinityCore/commit/56fcd8ba1dc33e00ff6f98704764dcdebd838fd3)
2021-06-22 20:51:08 -04:00
hondacrx fbd7df7c3f Some missed stuff. 2021-06-18 15:19:41 -04:00
hondacrx 52e43853fe More Cleanups 2021-06-08 12:56:09 -04:00
hondacrx 302a1f293c Some Cleanups 2021-06-07 18:06:16 -04:00
hondacrx cb7640e3c6 Misc Fixes 2021-06-07 13:13:58 -04:00