mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
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();
|
||||
|
||||
if (!phase)
|
||||
phase = PHASEMASK_NORMAL;
|
||||
|
||||
|
||||
// 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 phase;
|
||||
|
||||
Reference in New Issue
Block a user