mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
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:
parent
2817f301ad
commit
1fb8a52032
6 changed files with 22 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue