Fix Signets being exploitable by not actually paying for activation

This commit is contained in:
Sol
2017-12-10 20:30:48 +00:00
parent a2f11fb829
commit f90af4784e

View File

@@ -302,13 +302,15 @@ public abstract class InputPayMana extends InputSyncronizedBase {
game.getAction().invoke(new Runnable() {
@Override
public void run() {
HumanPlay.playSpellAbility(getController(), chosen.getActivatingPlayer(), chosen);
player.getManaPool().payManaFromAbility(saPaidFor, InputPayMana.this.manaCost, chosen);
if (HumanPlay.playSpellAbility(getController(), chosen.getActivatingPlayer(), chosen)) {
player.getManaPool().payManaFromAbility(saPaidFor, InputPayMana.this.manaCost, chosen);
onManaAbilityPaid();
onStateChanged();
onManaAbilityPaid();
onStateChanged();
}
}
});
return true;
}