From 59ca2f4790fa36f4c9c9dc9dafd4fb567c71f286 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 2 Jun 2022 12:23:48 -0400 Subject: [PATCH] v1.3.0: fixed mystical charge giving more arti recharging than intended --- .../shatteredpixeldungeon/items/weapon/melee/MagesStaff.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MagesStaff.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MagesStaff.java index 3b0aec26e..7c16ece98 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MagesStaff.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/MagesStaff.java @@ -163,8 +163,8 @@ public class MagesStaff extends MeleeWeapon { if (attacker instanceof Hero && ((Hero) attacker).hasTalent(Talent.MYSTICAL_CHARGE)){ Hero hero = (Hero) attacker; for (Buff b : hero.buffs()){ - if (b instanceof Artifact.ArtifactBuff) { - if (!((Artifact.ArtifactBuff) b).isCursed()) ((Artifact.ArtifactBuff) b).charge(hero, 4); + if (b instanceof Artifact.ArtifactBuff && !((Artifact.ArtifactBuff) b).isCursed() ) { + ((Artifact.ArtifactBuff) b).charge(hero, hero.pointsInTalent(Talent.MYSTICAL_CHARGE)/2f); } } }