HumanPlaySpellAbility: fixed the reset of xPaid only for Spells

This commit is contained in:
Hanmac
2016-08-14 08:35:10 +00:00
parent eb9497e9f6
commit f99158c026

View File

@@ -100,6 +100,7 @@ public class HumanPlaySpellAbility {
}
c.setCastSA(ability);
ability.setLastStateBattlefield(game.getLastStateBattlefield());
ability.setLastStateGraveyard(game.getLastStateGraveyard());
ability.setHostCard(game.getAction().moveToStack(c));
}
@@ -285,7 +286,7 @@ public class HumanPlaySpellAbility {
}
card.setXManaCostPaid(value);
}
} else if (needX && manaCost != null && manaCost.getMana().isZero()) {
} else if (needX && manaCost != null && manaCost.getMana().isZero() && ability.isSpell()) {
card.setXManaCostPaid(0);
}
return true;