From fc705449052e2d99a14821a738aa9ae8df8681e5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 16 May 2022 16:19:31 -0400 Subject: [PATCH] v1.3.0: fixed great crab not blocking on save/load --- .../shatteredpixeldungeon/actors/mobs/GreatCrab.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GreatCrab.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GreatCrab.java index 3e4702156..dc7473d13 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GreatCrab.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GreatCrab.java @@ -70,6 +70,7 @@ public class GreatCrab extends Crab { @Override public void damage( int dmg, Object src ){ + if (enemy == null) enemy = chooseEnemy(); //crab blocks all wand damage from the hero if it sees them. //Direct damage is negated, but add-on effects and environmental effects go through as normal. if (enemySeen @@ -88,6 +89,7 @@ public class GreatCrab extends Crab { @Override public int defenseSkill( Char enemy ) { + if (this.enemy == null) this.enemy = chooseEnemy(); //crab blocks all melee attacks from its current target if (enemySeen && state != SLEEPING