v0.3.5: fixed some bugs

This commit is contained in:
Evan Debenham
2016-04-21 22:20:24 -04:00
parent 01f957f70f
commit 6dbd6d1fc1
3 changed files with 30 additions and 26 deletions
@@ -59,7 +59,7 @@ public class SpearTrap extends Trap {
}
Char ch = Actor.findChar( pos);
if (ch != null){
if (ch != null && !ch.flying){
int damage = Random.NormalIntRange(Dungeon.depth, Dungeon.depth*2);
damage -= Random.IntRange( 0, ch.dr());
ch.damage( Math.max(damage, 0) , this);