v0.3.3: added char properties, starting with IMMOVABLE implementation
This commit is contained in:
@@ -39,7 +39,9 @@ public class Bounce extends Glyph {
|
||||
|
||||
int level = Math.max( 0, armor.level() );
|
||||
|
||||
if (Level.adjacent( attacker.pos, defender.pos ) && Random.Int( level + 5) >= 4) {
|
||||
if (Level.adjacent( attacker.pos, defender.pos )
|
||||
&& !defender.properties().contains(Char.Property.IMMOVABLE)
|
||||
&& Random.Int( level + 5) >= 4) {
|
||||
|
||||
for (int i=0; i < Level.NEIGHBOURS8.length; i++) {
|
||||
int ofs = Level.NEIGHBOURS8[i];
|
||||
|
||||
Reference in New Issue
Block a user