v1.2.0: fixed weird inconsistent logic in wild energy

This commit is contained in:
Evan Debenham 2022-02-23 14:08:09 -05:00
parent 2939ca7dea
commit 755130b91d

View File

@ -45,31 +45,22 @@ public class WildEnergy extends TargetedSpell {
//we rely on cursedWand to do fx instead //we rely on cursedWand to do fx instead
@Override @Override
protected void fx(Ballistica bolt, Callback callback) { protected void fx(Ballistica bolt, Callback callback) {
affectTarget(bolt, curUser); CursedWand.cursedZap(this, curUser, bolt, callback);
} }
@Override @Override
protected void affectTarget(Ballistica bolt, final Hero hero) { protected void affectTarget(Ballistica bolt, final Hero hero) {
CursedWand.cursedZap(this, hero, bolt, new Callback() { Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );
@Override Sample.INSTANCE.play( Assets.Sounds.CHARGEUP );
public void call() { ScrollOfRecharging.charge(hero);
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );
Sample.INSTANCE.play( Assets.Sounds.CHARGEUP );
ScrollOfRecharging.charge(hero);
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) ((Artifact.ArtifactBuff) b).charge(hero, 4);
} }
Buff.affect(hero, Recharging.class, 8f); Buff.affect(hero, Recharging.class, 8f);
Buff.affect(hero, ArtifactRecharge.class).prolong( 8 ).ignoreHornOfPlenty = false; Buff.affect(hero, ArtifactRecharge.class).prolong( 8 ).ignoreHornOfPlenty = false;
detach( curUser.belongings.backpack );
updateQuickslot();
curUser.spendAndNext( 1f );
}
});
} }
@Override @Override