v0.9.4: rooted characters are now immune to knockback effects

This commit is contained in:
Evan Debenham 2021-07-12 22:06:10 -04:00
parent 20226d2946
commit cdcd6351f5

View File

@ -125,7 +125,9 @@ public class WandOfBlastWave extends DamageWand {
boolean collided = dist == trajectory.dist;
if (dist == 0 || ch.properties().contains(Char.Property.IMMOVABLE)) return;
if (dist == 0
|| ch.rooted
|| ch.properties().contains(Char.Property.IMMOVABLE)) return;
//large characters cannot be moved into non-open space
if (Char.hasProp(ch, Char.Property.LARGE)) {