From e92ed1276ca453279c927ba5a268c0391a9f76d4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 4 Oct 2024 10:08:26 -0400 Subject: [PATCH] v2.5.4: fixed flashbang bomb not properly using electricity dmg type --- .../shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java | 1 - .../shatteredpixeldungeon/items/bombs/FlashBangBomb.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java index 8b4e27d6d..1e4676e7d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/Bomb.java @@ -28,7 +28,6 @@ import com.shatteredpixel.shatteredpixeldungeon.SPDSettings; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; -import com.shatteredpixel.shatteredpixeldungeon.effects.Beam; import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter; import com.shatteredpixel.shatteredpixeldungeon.effects.particles.BlastParticle; import com.shatteredpixel.shatteredpixeldungeon.effects.particles.SmokeParticle; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/FlashBangBomb.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/FlashBangBomb.java index e6a8cee1b..187f80cb2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/FlashBangBomb.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/bombs/FlashBangBomb.java @@ -71,7 +71,7 @@ public class FlashBangBomb extends Bomb { for (Char ch : affected){ //25% bonus damage and 10 turns of stun int damage = Math.round(Random.NormalIntRange(4 + Dungeon.scalingDepth(), 12 + 3*Dungeon.scalingDepth()) / 4f); - ch.damage(damage, Electricity.class); + ch.damage(damage, new Electricity()); if (ch.isAlive()) Buff.prolong(ch, Paralysis.class, Paralysis.DURATION); arcs.add(new Lightning.Arc(DungeonTilemap.tileCenterToWorld(cell), ch.sprite.center()));