v1.3.0: fixed mystical charge giving more arti recharging than intended
This commit is contained in:
+2
-2
@@ -163,8 +163,8 @@ public class MagesStaff extends MeleeWeapon {
|
|||||||
if (attacker instanceof Hero && ((Hero) attacker).hasTalent(Talent.MYSTICAL_CHARGE)){
|
if (attacker instanceof Hero && ((Hero) attacker).hasTalent(Talent.MYSTICAL_CHARGE)){
|
||||||
Hero hero = (Hero) attacker;
|
Hero hero = (Hero) attacker;
|
||||||
for (Buff b : hero.buffs()){
|
for (Buff b : hero.buffs()){
|
||||||
if (b instanceof Artifact.ArtifactBuff) {
|
if (b instanceof Artifact.ArtifactBuff && !((Artifact.ArtifactBuff) b).isCursed() ) {
|
||||||
if (!((Artifact.ArtifactBuff) b).isCursed()) ((Artifact.ArtifactBuff) b).charge(hero, 4);
|
((Artifact.ArtifactBuff) b).charge(hero, hero.pointsInTalent(Talent.MYSTICAL_CHARGE)/2f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user