mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 09:50:27 +00:00
fix(spell): paladin and dk aggro spell, warrior
This commit is contained in:
@@ -60,6 +60,14 @@ bool ComboPointsAvailableTrigger::IsActive()
|
||||
|
||||
bool LoseAggroTrigger::IsActive()
|
||||
{
|
||||
Unit* mt = AI_VALUE(Unit*, "main tank");
|
||||
if (mt) {
|
||||
botAI->TellMasterNoFacing("Has aggro: " + std::to_string(AI_VALUE2(bool, "has aggro", "current target"))
|
||||
+ " My main tank is: " + mt->GetName());
|
||||
} else {
|
||||
botAI->TellMasterNoFacing("Has aggro: " + std::to_string(AI_VALUE2(bool, "has aggro", "current target"))
|
||||
+ " No main tank detected");
|
||||
}
|
||||
return !AI_VALUE2(bool, "has aggro", "current target");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user