v1.2.2: fixed some sources of arti charging working on cursed artifacts
This commit is contained in:
parent
f329bdf950
commit
5554abd279
|
@ -57,7 +57,9 @@ public class WildEnergy extends TargetedSpell {
|
||||||
|
|
||||||
hero.belongings.charge(1f);
|
hero.belongings.charge(1f);
|
||||||
for (Buff b : hero.buffs()){
|
for (Buff b : hero.buffs()){
|
||||||
if (b instanceof Artifact.ArtifactBuff) ((Artifact.ArtifactBuff) b).charge(hero, 4);
|
if (b instanceof Artifact.ArtifactBuff){
|
||||||
|
if (!((Artifact.ArtifactBuff) b).isCursed()) ((Artifact.ArtifactBuff) b).charge(hero, 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Buff.affect(hero, Recharging.class, 8f);
|
Buff.affect(hero, Recharging.class, 8f);
|
||||||
|
|
|
@ -163,7 +163,9 @@ 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) ((Artifact.ArtifactBuff) b).charge(hero, hero.pointsInTalent(Talent.MYSTICAL_CHARGE)/2f);
|
if (b instanceof Artifact.ArtifactBuff) {
|
||||||
|
if (!((Artifact.ArtifactBuff) b).isCursed()) ((Artifact.ArtifactBuff) b).charge(hero, 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user