v2.0.1: levitation now prevents damage from floor electricity vs DM-300
This commit is contained in:
+1
-1
@@ -811,7 +811,7 @@ public class CavesBossLevel extends Level {
|
|||||||
if (off[cell] > 0){
|
if (off[cell] > 0){
|
||||||
|
|
||||||
Char ch = Actor.findChar(cell);
|
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 );
|
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );
|
||||||
ch.damage( Random.NormalIntRange(6, 12), Electricity.class);
|
ch.damage( Random.NormalIntRange(6, 12), Electricity.class);
|
||||||
ch.sprite.flash();
|
ch.sprite.flash();
|
||||||
|
|||||||
Reference in New Issue
Block a user