From a0b4c9c11af4e124c3f4a4a73b7e49f7b7b9edce Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 14 Jan 2024 16:12:11 -0500 Subject: [PATCH] v2.3.0: wand of transfusion onHit now uses new shielding text --- .../shatteredpixeldungeon/items/wands/WandOfTransfusion.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 0ffd7328d..fb257016b 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 @@ -152,7 +152,9 @@ public class WandOfTransfusion extends Wand { if (defender.buff(Charm.class) != null && defender.buff(Charm.class).object == attacker.id()){ //grants a free use of the staff and shields self freeCharge = true; - Buff.affect(attacker, Barrier.class).setShield(Math.round((2*(5 + buffedLvl()))*procChanceMultiplier(attacker))); + int shieldToGive = Math.round((2*(5 + buffedLvl()))*procChanceMultiplier(attacker)); + Buff.affect(attacker, Barrier.class).setShield(shieldToGive); + attacker.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(shieldToGive), FloatingText.SHIELDING); GLog.p( Messages.get(this, "charged") ); attacker.sprite.emitter().burst(BloodParticle.BURST, 20); }