mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-12-01 21:12:50 +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()
|
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();
|
Group* group = bot->GetGroup();
|
||||||
if (!group)
|
if (!group)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user