From c98726ea3c0b50fec16d29b28088cbc273f46e61 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Fri, 6 Feb 2009 06:01:47 +0300 Subject: [PATCH] Fixed pahse seelction for gameobject/creature spawn for GM-mode without phase auras. --- src/game/Player.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 720fec4b0..8f37a13f5 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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; -} \ No newline at end of file +}