v0.9.0b: fixed projecting elementals always using their ranged attack

This commit is contained in:
Evan Debenham 2020-10-12 19:23:13 -04:00
parent 3153ad6b6a
commit f18b83b8cf

View File

@ -98,7 +98,7 @@ public abstract class Elemental extends Mob {
protected boolean doAttack( Char enemy ) {
if (Dungeon.level.adjacent( pos, enemy.pos )) {
if (Dungeon.level.adjacent( pos, enemy.pos ) || rangedCooldown > 0) {
return super.doAttack( enemy );