mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-17 18:55:41 +00:00
Avoie aoe strategy
This commit is contained in:
@@ -37,6 +37,11 @@ bool TellLosAction::Execute(Event event)
|
||||
ListUnits("--- Friendly players ---", *context->GetValue<GuidVector>("nearest friendly players"));
|
||||
}
|
||||
|
||||
if (param.empty() || param == "triggers")
|
||||
{
|
||||
ListUnits("--- Triggers ---", *context->GetValue<GuidVector>("possible triggers"));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -46,8 +51,9 @@ void TellLosAction::ListUnits(std::string const title, GuidVector units)
|
||||
|
||||
for (ObjectGuid const guid : units)
|
||||
{
|
||||
if (Unit* unit = botAI->GetUnit(guid))
|
||||
if (Unit* unit = botAI->GetUnit(guid)) {
|
||||
botAI->TellMaster(unit->GetName());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user