Core-Vehicles: Change player mover when add/remove passenger (thanks Subv)

Core-Misc: Restore correct mover for victim of possesion spell.

Closes #4704, #4707
This commit is contained in:
elecyb
2012-01-08 03:56:33 -03:00
parent 7d7bb8363d
commit fc4b033715
3 changed files with 6 additions and 3 deletions
@@ -3104,6 +3104,8 @@ void AuraEffect::HandleModPossess(AuraApplication const* aurApp, uint8 mode, boo
{
target->RemoveCharmedBy(caster);
caster->ToPlayer()->SetMover(caster);
if (target->GetTypeId() == TYPEID_PLAYER)
target->ToPlayer()->SetMover(target);
}
}