From 5c63e6faf34b24686d41cd32188e13d8e9d84760 Mon Sep 17 00:00:00 2001 From: avirar Date: Sun, 22 Dec 2024 13:37:37 +1100 Subject: [PATCH] Allowed tank bots to reassign roles if human main tank is affected by fused armor --- src/strategy/raids/ulduar/RaidUlduarTriggers.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/strategy/raids/ulduar/RaidUlduarTriggers.cpp b/src/strategy/raids/ulduar/RaidUlduarTriggers.cpp index 49f2e6e3..d2da0940 100644 --- a/src/strategy/raids/ulduar/RaidUlduarTriggers.cpp +++ b/src/strategy/raids/ulduar/RaidUlduarTriggers.cpp @@ -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;