v3.0.0: fixed great crab not blocking cleric spells
This commit is contained in:
@@ -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") );
|
||||
|
||||
Reference in New Issue
Block a user