v1.2.0: fixed weird inconsistent logic in wild energy
This commit is contained in:
parent
2939ca7dea
commit
755130b91d
|
@ -45,14 +45,11 @@ public class WildEnergy extends TargetedSpell {
|
|||
//we rely on cursedWand to do fx instead
|
||||
@Override
|
||||
protected void fx(Ballistica bolt, Callback callback) {
|
||||
affectTarget(bolt, curUser);
|
||||
CursedWand.cursedZap(this, curUser, bolt, callback);
|
||||
}
|
||||
|
||||
@Override
|
||||
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.CHARGEUP );
|
||||
ScrollOfRecharging.charge(hero);
|
||||
|
@ -64,12 +61,6 @@ public class WildEnergy extends TargetedSpell {
|
|||
|
||||
Buff.affect(hero, Recharging.class, 8f);
|
||||
Buff.affect(hero, ArtifactRecharge.class).prolong( 8 ).ignoreHornOfPlenty = false;
|
||||
|
||||
detach( curUser.belongings.backpack );
|
||||
updateQuickslot();
|
||||
curUser.spendAndNext( 1f );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user