Skip to content

Comments

fix(Core/Combat): Update to new ThreatManager API#361

Open
blinkysc wants to merge 1 commit intoazerothcore:masterfrom
blinkysc:fix/threat-system-compat
Open

fix(Core/Combat): Update to new ThreatManager API#361
blinkysc wants to merge 1 commit intoazerothcore:masterfrom
blinkysc:fix/threat-system-compat

Conversation

@blinkysc
Copy link

Summary

  • Updates UnitMethods.h and CreatureMethods.h to use the new heap-based ThreatManager API
  • Replaces removed ThreatContainer::StorageType / GetThreatList() with GetSortedThreatList()
  • Replaces getTarget() with GetVictim() on ThreatReference

Context

Required for compatibility with azerothcore/azerothcore-wotlk#24715 which ports TrinityCore's heap-based threat system.

Test plan

  • Verify Lua scripts using Unit:GetThreatList(), Creature:GetAITarget(), and Creature:GetAITargets() work correctly
  • Confirm module compiles with the new threat system changes

Replace removed ThreatContainer::StorageType/GetThreatList() with
GetSortedThreatList() and getTarget() with GetVictim() to match
AzerothCore's ported heap-based threat system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant