v0.3.3a: bugfixes and safety checks to tengu and ranged attacks
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user