diff options
| author | megamage <none@none> | 2009-06-03 00:22:43 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-06-03 00:22:43 -0500 |
| commit | 7e3bb5c2d43faac7ee8d32892840b070f8beaf92 (patch) | |
| tree | 87dbb5f913e7c02385839995b42b0363b9b01a33 /src | |
| parent | 711ae289471c9990d769e486d567cf1806c31c54 (diff) | |
*Restore creature's phasemask when respawn.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index c695993ce26..2d70cec8ed9 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -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); } } |
