From abea48afc35b3a1c514da8a3ddc68978671bcaf1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 21 Jul 2021 11:36:21 -0400 Subject: [PATCH] v0.9.4: transfusion now grants its shield before affecting enemies --- .../items/wands/WandOfTransfusion.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java index 07d540536..520ce399a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java @@ -101,23 +101,23 @@ public class WandOfTransfusion extends Wand { //for enemies... } else { + + //grant a self-shield, and... + Buff.affect(curUser, Barrier.class).setShield((5 + buffedLvl())); - //charms living enemies + //chars living enemies if (!ch.properties().contains(Char.Property.UNDEAD)) { Charm charm = Buff.affect(ch, Charm.class, Charm.DURATION/2f); charm.object = curUser.id(); charm.ignoreHeroAllies = true; ch.sprite.centerEmitter().start( Speck.factory( Speck.HEART ), 0.2f, 3 ); - //harms the undead + //harm the undead } else { ch.damage(Random.NormalIntRange(3 + buffedLvl()/2, 6+buffedLvl()), this); ch.sprite.emitter().start(ShadowParticle.UP, 0.05f, 10 + buffedLvl()); Sample.INSTANCE.play(Assets.Sounds.BURNING); } - - //and grants a self shield - Buff.affect(curUser, Barrier.class).setShield((5 + buffedLvl())); }