*Restore creature's phasemask when respawn.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-03 00:22:43 -05:00
parent 711ae28947
commit 7e3bb5c2d4

View File

@@ -1756,6 +1756,8 @@ void Creature::setDeathState(DeathState s)
SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool));
LoadCreaturesAddon(true);
Motion_Initialize();
if(GetPhaseMask() != GetCreatureData()->phaseMask)
SetPhaseMask(GetCreatureData()->phaseMask, true);
}
}