Fix invalid heal targeting for non-sharded teams (#8728)

This commit is contained in:
Даркнесс#3729
2023-06-19 16:10:33 +03:00
committed by GitHub
parent 4289450a4d
commit 3762ee6313

View File

@@ -1036,7 +1036,7 @@ public class MobileInput extends InputHandler implements GestureListener{
}
if(allowHealing && target == null){
target = Geometry.findClosest(unit.x, unit.y, indexer.getDamaged(Team.sharded));
target = Geometry.findClosest(unit.x, unit.y, indexer.getDamaged(player.team()));
if(target != null && !unit.within(target, range)){
target = null;
}