Fixed pahse seelction for gameobject/creature spawn for GM-mode without phase auras.

This commit is contained in:
VladimirMangos 2009-02-06 06:01:47 +03:00
parent f94377622e
commit c98726ea3c

View file

@ -19533,9 +19533,7 @@ uint32 Player::GetPhaseMaskForSpawn() const
else
{
AuraList const& phases = GetAurasByType(SPELL_AURA_PHASE);
if(phases.empty())
phase = GetPhaseMask();
else
if(!phases.empty())
phase = phases.front()->GetMiscValue();
}
@ -19544,4 +19542,4 @@ uint32 Player::GetPhaseMaskForSpawn() const
return n_phase;
return PHASEMASK_NORMAL;
}
}