aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-03 00:22:43 -0500
committermegamage <none@none>2009-06-03 00:22:43 -0500
commit7e3bb5c2d43faac7ee8d32892840b070f8beaf92 (patch)
tree87dbb5f913e7c02385839995b42b0363b9b01a33 /src
parent711ae289471c9990d769e486d567cf1806c31c54 (diff)
*Restore creature's phasemask when respawn.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp2
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);
}
}