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,14 +45,11 @@ 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() {
@Override
public void call() {
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING ); Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );
Sample.INSTANCE.play( Assets.Sounds.CHARGEUP ); Sample.INSTANCE.play( Assets.Sounds.CHARGEUP );
ScrollOfRecharging.charge(hero); ScrollOfRecharging.charge(hero);
@ -64,12 +61,6 @@ public class WildEnergy extends TargetedSpell {
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