mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 01:49:09 +00:00
Improve combat reach and dps target, allowing spell interruption
This commit is contained in:
@@ -29,13 +29,14 @@ bool TellAttackersAction::Execute(Event event)
|
||||
botAI->TellMaster("--- Attackers ---");
|
||||
|
||||
GuidVector attackers = context->GetValue<GuidVector>("attackers")->Get();
|
||||
int32 count = 0;
|
||||
for (ObjectGuid const guid : attackers)
|
||||
{
|
||||
Unit* unit = botAI->GetUnit(guid);
|
||||
if (!unit || !unit->IsAlive())
|
||||
continue;
|
||||
|
||||
botAI->TellMaster(unit->GetName());
|
||||
botAI->TellMaster(std::to_string(++count) + std::string(".") + unit->GetName());
|
||||
}
|
||||
|
||||
botAI->TellMaster("--- Threat ---");
|
||||
|
||||
Reference in New Issue
Block a user