Fixed #10998
This commit is contained in:
@@ -94,7 +94,7 @@ public class LiquidTurret extends Turret{
|
|||||||
var fire = Fires.get(x + tx, y + ty);
|
var fire = Fires.get(x + tx, y + ty);
|
||||||
float dst = fire == null ? 0 : dst2(fire);
|
float dst = fire == null ? 0 : dst2(fire);
|
||||||
//do not extinguish fires on other team blocks
|
//do not extinguish fires on other team blocks
|
||||||
if(other != null && fire != null && Fires.has(other.x, other.y) && dst <= range * range && (result == null || dst < mindst) && (other.build == null || other.team() == team)){
|
if(other != null && fire != null && other.build != this && Fires.has(other.x, other.y) && dst <= range * range && (result == null || dst < mindst) && (other.build == null || other.team() == team)){
|
||||||
result = fire;
|
result = fire;
|
||||||
mindst = dst;
|
mindst = dst;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user