v2.3.0: wand of transfusion onHit now uses new shielding text

This commit is contained in:
Evan Debenham
2024-01-14 16:12:11 -05:00
parent 69e5fe5d08
commit a0b4c9c11a

View File

@@ -152,7 +152,9 @@ public class WandOfTransfusion extends Wand {
if (defender.buff(Charm.class) != null && defender.buff(Charm.class).object == attacker.id()){ if (defender.buff(Charm.class) != null && defender.buff(Charm.class).object == attacker.id()){
//grants a free use of the staff and shields self //grants a free use of the staff and shields self
freeCharge = true; 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") ); GLog.p( Messages.get(this, "charged") );
attacker.sprite.emitter().burst(BloodParticle.BURST, 20); attacker.sprite.emitter().burst(BloodParticle.BURST, 20);
} }