From e4c434e26eddc394e5c31d451fd5d586270692dd Mon Sep 17 00:00:00 2001 From: MEEP of Faith <54301439+MEEPofFaith@users.noreply.github.com> Date: Sat, 22 May 2021 05:41:04 -0700 Subject: [PATCH] lightningType follow angle (#5282) * lightningType follow angle * this is more complicated than it should be time to make it less stupid --- core/src/mindustry/entities/Lightning.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/Lightning.java b/core/src/mindustry/entities/Lightning.java index ce5a3f97da..6ba1dcc240 100644 --- a/core/src/mindustry/entities/Lightning.java +++ b/core/src/mindustry/entities/Lightning.java @@ -43,7 +43,7 @@ public class Lightning{ bhit = false; for(int i = 0; i < length / 2; i++){ - hitCreate.create(null, team, x, y, 0f, damage, 1f, 1f, hitter); + hitCreate.create(null, team, x, y, rotation, damage, 1f, 1f, hitter); lines.add(new Vec2(x + Mathf.range(3f), y + Mathf.range(3f))); if(lines.size > 1){ @@ -56,7 +56,7 @@ public class Lightning{ if(tile != null && tile.block().insulated && tile.team() != team){ bhit = true; //snap it instead of removing - lines.get(lines.size -1).set(wx * tilesize, wy * tilesize); + lines.get(lines.size - 1).set(wx * tilesize, wy * tilesize); return true; } return false;