Core/Spells: remove some workarounds about transform spells in corpse explosion script.
This commit is contained in:
1 parent
4ba341e892
commit
5365bd25fa
2 files changed
+5
-13
No files matched your search
@@ -12704,14 +12704,6 @@ void Unit::setDeathState(DeathState s)
|
||||
}
|
||||
else if (s == JUST_ALIVED)
|
||||
RemoveFlag (UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE); // clear skinnable for creature and player (at battleground)
|
||||
|
||||
if (oldDeathState != ALIVE && s == ALIVE)
|
||||
{
|
||||
// Reset display id on resurection - needed by corpse explosion to cleanup after display change
|
||||
// TODO: fix this
|
||||
if (!HasAuraType(SPELL_AURA_TRANSFORM))
|
||||
SetDisplayId(GetNativeDisplayId());
|
||||
}
|
||||
}
|
||||
|
||||
/*########################################
|
||||
|
||||
Reference in new issue
Block a user