Propertly send SMSG_SET_PHASE_SHIFT to inform client about phase shift at phase change.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
GriffonHeart 2009-02-15 12:00:47 +03:00 committed by VladimirMangos
parent 2817f301ad
commit 1fb8a52032
6 changed files with 22 additions and 0 deletions

View file

@ -6585,6 +6585,8 @@ void Aura::HandlePhase(bool apply, bool Real)
// GM-mode have mask 0xFFFFFFFF
if(!((Player*)m_target)->isGameMaster())
m_target->SetPhaseMask(apply ? GetMiscValue() : PHASEMASK_NORMAL,false);
((Player*)m_target)->GetSession()->SendSetPhaseShift(apply ? GetMiscValue() : PHASEMASK_NORMAL);
}
else
m_target->SetPhaseMask(apply ? GetMiscValue() : PHASEMASK_NORMAL,false);