v1.3.0: fixed mystical charge giving more arti recharging than intended

This commit is contained in:
Evan Debenham
2022-06-02 12:23:48 -04:00
parent c608e09c18
commit 59ca2f4790

View File

@@ -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);
}
}
}