From d9d5c8339565f8b8530d2258e938149ca885f27a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 31 Dec 2024 13:27:59 -0500 Subject: [PATCH] v3.0.0: guiding bolt and holy lance now press cells if they miss --- .../shatteredpixeldungeon/actors/hero/spells/GuidingLight.java | 2 ++ .../shatteredpixeldungeon/actors/hero/spells/HolyLance.java | 1 + 2 files changed, 3 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/GuidingLight.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/GuidingLight.java index 36ff100ad..283354f89 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/GuidingLight.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/GuidingLight.java @@ -81,6 +81,8 @@ public class GuidingLight extends TargetedClericSpell { Buff.affect(ch, Illuminated.class); Buff.affect(ch, WasIlluminatedTracker.class); } + } else { + Dungeon.level.pressCell(aim.collisionPos); } hero.spend( 1f ); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/HolyLance.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/HolyLance.java index 33c6b6aa9..1cc5ff915 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/HolyLance.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/spells/HolyLance.java @@ -124,6 +124,7 @@ public class HolyLance extends TargetedClericSpell { @Override public void call() { Splash.at(target, 0xFFFFFFFF, 10); + Dungeon.level.pressCell(aim.collisionPos); hero.spendAndNext(1f); onSpellCast(tome, hero); FlavourBuff.affect(hero, LanceCooldown.class, 50f);