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 02d167807..29921d903 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 @@ -64,10 +64,11 @@ public class GreatCrab extends Crab { @Override public void damage( int dmg, Object src ){ - //crab blocks all attacks originating from the hero or enemy characters or traps if it is alerted. - //All direct damage from these sources is negated, no exceptions. blob/debuff effects go through as normal. + //crab blocks all attacks originating from its current enemy if it sees them. + //All direct damage is negated, no exceptions. environmental effects go through as normal. if ((enemySeen && state != SLEEPING && paralysed == 0) - && (src instanceof Wand || src instanceof Char)){ + && ((src instanceof Wand && enemy == Dungeon.hero) + || (src instanceof Char && enemy == src))){ GLog.n( Messages.get(this, "noticed") ); sprite.showStatus( CharSprite.NEUTRAL, Messages.get(this, "blocked") ); } else { diff --git a/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties b/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties index dfa78c2e7..50019826b 100644 --- a/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties +++ b/core/src/main/resources/com/shatteredpixel/shatteredpixeldungeon/messages/actors/actors.properties @@ -490,9 +490,9 @@ actors.mobs.goo.rankings_desc=Absorbed by the Goo actors.mobs.goo.desc=Little is known about The Goo. It's quite possible that it is not even a creature, but rather a conglomerate of vile substances from the sewers that somehow gained basic intelligence. Regardless, dark magic is certainly what has allowed Goo to exist.\n\nIts gelatinous nature has let it absorb lots of dark energy, you feel a chill just from being near. If Goo is able to attack with this energy you won't live for long. actors.mobs.greatcrab.name=great crab -actors.mobs.greatcrab.noticed=The crab notices the attack and blocks with its massive claw. +actors.mobs.greatcrab.noticed=The crab blocks with its massive claw. actors.mobs.greatcrab.blocked=blocked -actors.mobs.greatcrab.desc=This crab is gigantic, even compared to other sewer crabs. Its blue shell is covered in cracks and barnacles, showing great age. It lumbers around slowly, barely keeping balance with its massive claw.\n\nWhile the crab only has one claw, its size easily compensates. The crab holds the claw infront of itself whenever it sees a threat, shielding itself behind an impenetrable wall of carapace. +actors.mobs.greatcrab.desc=This crab is gigantic, even compared to other sewer crabs. Its blue shell is covered in cracks and barnacles, showing great age. It lumbers around slowly, barely keeping balance with its massive claw.\n\nWhile the crab only has one claw, its size easily compensates. The crab holds the claw in front of any threat, shielding itself behind an impenetrable wall of carapace. However, the crab cannot block attacks it doesn't see coming, or attacks from multiple enemies at once. actors.mobs.guard.name=prison guard actors.mobs.guard.scorpion=Get over here!