mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Bugfix lightning chain distance (again) (#12695)
This commit is contained in:
@@ -84,7 +84,7 @@ public class Lightning{
|
|||||||
|
|
||||||
Unit furthest = Geometry.findFurthest(x, y, entities);
|
Unit furthest = Geometry.findFurthest(x, y, entities);
|
||||||
|
|
||||||
if(furthest != null && furthest.dst(x, y) < length * 1.5f){
|
if(furthest != null && furthest.within(x, y, hitRange * 2f)){
|
||||||
hit.add(furthest.id());
|
hit.add(furthest.id());
|
||||||
x = furthest.x();
|
x = furthest.x();
|
||||||
y = furthest.y();
|
y = furthest.y();
|
||||||
|
|||||||
Reference in New Issue
Block a user