v1.3.0: fixed great crab not blocking on save/load

This commit is contained in:
Evan Debenham
2022-05-16 16:19:31 -04:00
parent 42852aa06f
commit fc70544905

View File

@@ -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