From 8e85e6d13af94f4fde54d7045ed6349c566181c5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 20 Dec 2024 12:38:52 -0500 Subject: [PATCH] v3.0.0: fixed great crab not blocking cleric spells --- .../shatteredpixeldungeon/actors/mobs/GreatCrab.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c581b60ee..6e77edf06 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 @@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.mobs; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; +import com.shatteredpixel.shatteredpixeldungeon.actors.hero.spells.ClericSpell; import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Ghost; import com.shatteredpixel.shatteredpixeldungeon.items.food.MysteryMeat; import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand; @@ -77,7 +78,7 @@ public class GreatCrab extends Crab { if (enemySeen && state != SLEEPING && paralysed == 0 - && src instanceof Wand + && (src instanceof Wand || src instanceof ClericSpell) && enemy == Dungeon.hero && enemy.invisible == 0){ GLog.n( Messages.get(this, "noticed") );