1
This commit is contained in:
parent
ad62d11326
commit
58cdec580c
@ -1638,7 +1638,14 @@ void Human::SelectSkillTargets(const a8::Vec2& target_pos, std::set<Entity*>& ta
|
||||
break;
|
||||
case ST_EnemyAndObject:
|
||||
{
|
||||
|
||||
for (auto& cell : grid_list) {
|
||||
for (Human* hum : cell->human_list) {
|
||||
if ((hum->team_id != team_id) ||
|
||||
hum->pos.Distance(target_pos) < skill_meta->i->skill_distance()) {
|
||||
target_list.insert(hum);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ST_EnemyAndSelf:
|
||||
|
Loading…
x
Reference in New Issue
Block a user