Avoie aoe strategy

This commit is contained in:
Yunfan Li
2024-04-14 00:00:41 +08:00
parent 10799e689c
commit df1b280b14
8 changed files with 135 additions and 26 deletions

View File

@@ -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());
}
}
}