v0.9.0b: fixed projecting elementals always using their ranged attack
This commit is contained in:
parent
3153ad6b6a
commit
f18b83b8cf
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user