mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
-(Hopefully) fixed targeting in cards played for free.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user