mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fixed pahse seelction for gameobject/creature spawn for GM-mode without phase auras.
This commit is contained in:
parent
f94377622e
commit
c98726ea3c
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue