diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java index 01ecc38c9..61378e73c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/King.java @@ -109,6 +109,13 @@ public class King extends Mob { super.getCloser( target ); } + @Override + protected boolean canAttack( Char enemy ) { + return canTryToSummon() ? + pos == ((CityBossLevel)Dungeon.level).pedestal( nextPedestal ) : + Dungeon.level.adjacent( pos, enemy.pos ); + } + private boolean canTryToSummon() { if (Undead.count < maxArmySize()) { Char ch = Actor.findChar( ((CityBossLevel)Dungeon.level).pedestal( nextPedestal ) );