v0.3.3a: bugfixes and safety checks to tengu and ranged attacks

This commit is contained in:
Evan Debenham
2015-12-24 03:47:13 -05:00
parent fe1fade887
commit 2bb18fcd14
2 changed files with 9 additions and 2 deletions
@@ -113,6 +113,8 @@ public abstract class Char extends Actor {
}
public boolean attack( Char enemy ) {
if (enemy == null || !enemy.isAlive()) return false;
boolean visibleFight = Dungeon.visible[pos] || Dungeon.visible[enemy.pos];