Fixed npc/object spawn by command when GetPhaseByAuras is used.
This commit is contained in:
@@ -25246,8 +25246,13 @@ uint32 Player::GetPhaseMaskForSpawn() const
|
|||||||
{
|
{
|
||||||
uint32 phase = IsGameMaster() ? GetPhaseByAuras() : GetPhaseMask();
|
uint32 phase = IsGameMaster() ? GetPhaseByAuras() : GetPhaseMask();
|
||||||
|
|
||||||
|
if (!phase)
|
||||||
|
phase = PHASEMASK_NORMAL;
|
||||||
|
|
||||||
|
|
||||||
// some aura phases include 1 normal map in addition to phase itself
|
// some aura phases include 1 normal map in addition to phase itself
|
||||||
if (uint32 n_phase = phase & ~PHASEMASK_NORMAL)
|
uint32 n_phase = phase & ~PHASEMASK_NORMAL;
|
||||||
|
if (n_phase > 0)
|
||||||
return n_phase;
|
return n_phase;
|
||||||
|
|
||||||
return phase;
|
return phase;
|
||||||
|
|||||||
Reference in New Issue
Block a user