HoL updates

This commit is contained in:
Bobblybook
2024-10-18 20:57:48 +11:00
parent f6987a80a5
commit 66b7a3852d
2 changed files with 24 additions and 2 deletions

View File

@@ -19,8 +19,15 @@ bool BjarngrimTargetAction::Execute(Event event)
break;
}
}
Unit* currentTarget = AI_VALUE(Unit*, "current target");
// There are two, we don't want to ping-pong between them if we're attacking one already
if (!target || AI_VALUE(Unit*, "current target") == target)
if (target && currentTarget && currentTarget->GetEntry() == NPC_STORMFORGED_LIEUTENANT)
{
return false;
}
if (AI_VALUE(Unit*, "current target") == target)
{
return false;
}