diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GeyserTrap.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GeyserTrap.java index 5d1915813..d2f050f5a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GeyserTrap.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GeyserTrap.java @@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning; import com.shatteredpixel.shatteredpixeldungeon.effects.Splash; import com.shatteredpixel.shatteredpixeldungeon.items.wands.WandOfBlastWave; import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica; @@ -83,6 +84,10 @@ public class GeyserTrap extends Trap { } if (ch.isAlive()) { + if (ch.buff(Burning.class) != null){ + ch.buff(Burning.class).detach(); + } + //trace a ballistica to our target (which will also extend past them) Ballistica trajectory = new Ballistica(pos, ch.pos, Ballistica.STOP_TARGET); //trim it to just be the part that goes past them @@ -124,6 +129,9 @@ public class GeyserTrap extends Trap { } if (ch.isAlive() && targetpos != -1){ + if (ch.buff(Burning.class) != null){ + ch.buff(Burning.class).detach(); + } //trace a ballistica in the direction of our target Ballistica trajectory = new Ballistica(pos, targetpos, Ballistica.MAGIC_BOLT); //knock them back along that ballistica