-(Hopefully) fixed targeting in cards played for free.

This commit is contained in:
jendave
2011-08-06 10:57:57 +00:00
parent 7a3cc90e70
commit 77612986b4

View File

@@ -2790,7 +2790,18 @@ public class GameAction {
public void playSpellAbilityForFree(final SpellAbility sa) {
if(sa.getBeforePayMana() == null) {
if (sa.getPayCosts() != null){
Target_Selection ts = new Target_Selection(sa.getTarget(), sa);
Cost_Payment payment = new Cost_Payment(sa.getPayCosts(), sa);
payment.getCost().setMana(sa.getAdditionalManaCost());
payment.changeCost();
SpellAbility_Requirements req = new SpellAbility_Requirements(sa, ts, payment);
req.fillRequirements();
}
else if(sa.getBeforePayMana() == null) {
boolean x = false;
if (sa.getSourceCard().getManaCost().contains("X"))
x = true;