From 744646062524199625833c2bad89471f80368601 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 17 Mar 2022 10:55:26 -0400 Subject: [PATCH] v1.2.0: fixed new surprise logic causing stack overflows with piranha --- .../shatteredpixeldungeon/actors/mobs/Piranha.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java index 887c4bc76..7e5af25a8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java @@ -97,7 +97,7 @@ public class Piranha extends Mob { } return state == SLEEPING || !fieldOfView[enemy.pos] || enemy.invisible > 0; } - return super.surprisedBy(enemy); + return super.surprisedBy(enemy, attacking); } @Override