v2.0.1: levitation now prevents damage from floor electricity vs DM-300

This commit is contained in:
Evan Debenham
2023-03-21 12:27:55 -04:00
parent 8475ba904e
commit 01ee4b42e1

View File

@@ -811,7 +811,7 @@ public class CavesBossLevel extends Level {
if (off[cell] > 0){
Char ch = Actor.findChar(cell);
if (ch != null && !(ch instanceof DM300)) {
if (ch != null && !(ch instanceof DM300) && !ch.flying) {
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );
ch.damage( Random.NormalIntRange(6, 12), Electricity.class);
ch.sprite.flash();