Merge pull request #4714 from elecyb/mover

Core-Vehicles: Change player mover when add/remove passenger (thanks Sub...
This commit is contained in:
Kaelima
2012-01-08 06:41:02 -08:00
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);
}
}