From 0046ee88e746dc258f0d44cea5188a71e45116b0 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 14 Dec 2014 00:47:55 -0500 Subject: [PATCH] v0.2.3: bugfix with drowsy buff --- .../shatteredpixeldungeon/actors/buffs/Drowsy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Drowsy.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Drowsy.java index e85712b31..23c02e588 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Drowsy.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Drowsy.java @@ -29,7 +29,7 @@ public class Drowsy extends Buff { } public boolean attachTo( Char target ) { - if (super.attachTo(target) && !target.immunities().contains(Sleep.class)) { + if (!target.immunities().contains(Sleep.class) && super.attachTo(target)) { if (cooldown() == 0) spend(Random.Int(3, 6)); return true;