diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MagicalSleep.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MagicalSleep.java index 5f6fe23da..9b783f6b0 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MagicalSleep.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MagicalSleep.java @@ -34,7 +34,7 @@ public class MagicalSleep extends Buff { @Override public boolean attachTo( Char target ) { - if (super.attachTo( target ) && !target.immunities().contains(Sleep.class)) { + if (!target.immunities().contains(Sleep.class) && super.attachTo( target )) { if (target instanceof Hero) if (target.HP == target.HT) {