v1.1.0: fixed artifact charging working on cursed artifacts

This commit is contained in:
Evan Debenham 2021-11-08 15:56:00 -05:00
parent 5024931e40
commit 25842ddd68

View File

@ -50,7 +50,9 @@ public class ArtifactRecharge extends Buff {
if (b instanceof HornOfPlenty.hornRecharge && ignoreHornOfPlenty){ if (b instanceof HornOfPlenty.hornRecharge && ignoreHornOfPlenty){
continue; continue;
} }
((Artifact.ArtifactBuff) b).charge((Hero) target, chargeAmount); if (!((Artifact.ArtifactBuff) b).isCursed()) {
((Artifact.ArtifactBuff) b).charge((Hero) target, chargeAmount);
}
} }
} }
} }