mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Allowed tank bots to reassign roles if human main tank is affected by fused armor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user