Allowed tank bots to reassign roles if human main tank is affected by fused armor

This commit is contained in:
avirar
2024-12-22 13:37:37 +11:00
committed by GitHub
parent a6de87f6fc
commit 5c63e6faf3

View File

@@ -212,6 +212,17 @@ bool RazorscaleHarpoonAvailableTrigger::IsActive()
bool RazorscaleFuseArmorTrigger::IsActive()
{
// Get the boss entity
Unit* boss = AI_VALUE2(Unit*, "find target", "razorscale");
if (!boss || !boss->IsAlive())
{
return false;
}
// Only proceed if this bot can actually tank
if (!botAI->IsTank(bot))
return false;
Group* group = bot->GetGroup();
if (!group)
return false;