v3.0.0: fixed great crab not blocking cleric spells

This commit is contained in:
Evan Debenham
2024-12-20 12:38:52 -05:00
parent e1a138ed59
commit 8e85e6d13a

View File

@@ -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") );