From e7540fc8c3a191d5f8d2bbba5c8a82594e7616c2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 26 Dec 2019 23:39:51 -0500 Subject: [PATCH] v0.8.0: fixed lightning vfx working incorrectly on the first frame --- .../shatteredpixel/shatteredpixeldungeon/effects/Lightning.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Lightning.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Lightning.java index c1365d978..49d2eb2f1 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Lightning.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Lightning.java @@ -137,6 +137,8 @@ public class Lightning extends Group { arc2 = new Image(Effects.get(Effects.Type.LIGHTNING)); arc2.origin.set( 0, arc2.height()/2 ); add( arc2 ); + + update(); } public void alpha(float alpha) {