[8113] Fixed setting mover for Posses/Charm auras and Vehicle enter/exit.

Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
m4cm4n 2009-07-04 12:50:32 +02:00 committed by ApoC
parent d17a49f6dc
commit 7c5f254012
5 changed files with 7 additions and 4 deletions

View file

@ -3087,6 +3087,7 @@ void Aura::HandleModPossess(bool apply, bool Real)
{
((Player*)caster)->SetFarSightGUID(m_target->GetGUID());
((Player*)caster)->SetClientControl(m_target, 1);
((Player*)caster)->SetMover(m_target);
}
m_target->CombatStop();
@ -3130,6 +3131,7 @@ void Aura::HandleModPossess(bool apply, bool Real)
{
((Player*)caster)->SetFarSightGUID(0);
((Player*)caster)->SetClientControl(m_target, 0);
((Player*)caster)->SetMover(NULL);
WorldPacket data(SMSG_PET_SPELLS, 8);
data << uint64(0);
@ -3167,6 +3169,7 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
((Player*)caster)->SetFarSightGUID(apply ? pet->GetGUID() : 0);
((Player*)caster)->SetCharm(apply ? pet : NULL);
((Player*)caster)->SetClientControl(pet, apply ? 1 : 0);
((Player*)caster)->SetMover(apply ? pet : NULL);
if(apply)
{