v2.0.1: levitation now prevents damage from floor electricity vs DM-300
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user