v1.3.0: fixed great crab not blocking on save/load
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user