Core/Units: Replace UNIT_DYNFLAG_DEAD with UNIT_FLAG3_FAKE_DEAD
Port From (https://github.com/TrinityCore/TrinityCore/commit/ed93a9706842ff5419279d4b2c473943e6ef2549)
This commit is contained in:
@@ -1706,7 +1706,7 @@ namespace Game.Spells
|
||||
|
||||
target.SetUnitFlag(UnitFlags.PreventEmotesFromChatText);
|
||||
target.SetUnitFlag2(UnitFlags2.FeignDeath);
|
||||
target.SetDynamicFlag(UnitDynFlags.Dead);
|
||||
target.SetUnitFlag3(UnitFlags3.FakeDead);
|
||||
target.AddUnitState(UnitState.Died);
|
||||
|
||||
Creature creature = target.ToCreature();
|
||||
@@ -1717,7 +1717,7 @@ namespace Game.Spells
|
||||
{
|
||||
target.RemoveUnitFlag(UnitFlags.PreventEmotesFromChatText);
|
||||
target.RemoveUnitFlag2(UnitFlags2.FeignDeath);
|
||||
target.RemoveDynamicFlag(UnitDynFlags.Dead);
|
||||
target.RemoveUnitFlag3(UnitFlags3.FakeDead);
|
||||
target.ClearUnitState(UnitState.Died);
|
||||
|
||||
Creature creature = target.ToCreature();
|
||||
|
||||
Reference in New Issue
Block a user