v0.9.0b: fixed projecting elementals always using their ranged attack
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ public abstract class Elemental extends Mob {
|
|||||||
|
|
||||||
protected boolean doAttack( Char enemy ) {
|
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 );
|
return super.doAttack( enemy );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user