Core/Spells: remove some workarounds about transform spells in corpse explosion script.

This commit is contained in:
QAston
2012-02-09 23:27:59 +01:00
parent 4ba341e892
commit 5365bd25fa
2 changed files with 5 additions and 13 deletions
-8
View File
@@ -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());
}
}
/*########################################