- Added Mimiron Strategy (#1358)

- Fixed nearest npc value
This commit is contained in:
kadeshar
2025-06-06 08:51:28 +02:00
committed by GitHub
parent 3c05e47cb2
commit db9bcb97ba
8 changed files with 1141 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ void NearestNpcsValue::FindUnits(std::list<Unit*>& targets)
Cell::VisitAllObjects(bot, searcher, range);
}
bool NearestNpcsValue::AcceptUnit(Unit* unit) { return !unit->IsHostileTo(bot) && !unit->IsPlayer(); }
bool NearestNpcsValue::AcceptUnit(Unit* unit) { return !unit->IsPlayer(); }
void NearestHostileNpcsValue::FindUnits(std::list<Unit*>& targets)
{
@@ -64,4 +64,4 @@ void NearestTotemsValue::FindUnits(std::list<Unit*>& targets)
Cell::VisitAllObjects(bot, searcher, range);
}
bool NearestTotemsValue::AcceptUnit(Unit* unit) { return unit->IsTotem(); }
bool NearestTotemsValue::AcceptUnit(Unit* unit) { return unit->IsTotem(); }