mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Creature: Prevent friendly vehicles from trying to attack their rider after dismounting.
(cherry picked from commit 89e2afb8f9)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user