From 0d9746b5984a77c9f990b1be3cd1b3861f6b953f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 30 Jun 2024 13:41:52 -0400 Subject: [PATCH] v2.5.0: fixed self-throwing aqua brew always going up-left --- .../items/potions/brews/AquaBrew.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java index b27544243..e77aa4fba 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/potions/brews/AquaBrew.java @@ -41,9 +41,11 @@ public class AquaBrew extends Brew { geyser.source = this; int userPos = curUser.pos; - Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET); - if (aim.path.size() > aim.dist+1) { - geyser.centerKnockBackDirection = aim.path.get(aim.dist + 1); + if (userPos != cell){ + Ballistica aim = new Ballistica(userPos, cell, Ballistica.STOP_TARGET); + if (aim.path.size() > aim.dist+1) { + geyser.centerKnockBackDirection = aim.path.get(aim.dist + 1); + } } geyser.activate(); }