v0.3.5: fixed some bugs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user