Core/Creature: Prevent friendly vehicles from trying to attack their rider after dismounting.

(cherry picked from commit 89e2afb8f9)
This commit is contained in:
treeston
2016-03-01 20:12:46 +01:00
committed by Shauren
parent bedd2f4236
commit 3b67e57e0e

View File

@@ -582,7 +582,8 @@ void Creature::Update(uint32 diff)
IsAIEnabled = true;
if (!IsInEvadeMode() && !LastCharmerGUID.IsEmpty())
if (Unit* charmer = ObjectAccessor::GetUnit(*this, LastCharmerGUID))
i_AI->AttackStart(charmer);
if (CanStartAttack(charmer, true))
i_AI->AttackStart(charmer);
LastCharmerGUID.Clear();
}