mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
HumanPlaySpellAbility: fixed the reset of xPaid only for Spells
This commit is contained in:
@@ -100,6 +100,7 @@ public class HumanPlaySpellAbility {
|
|||||||
}
|
}
|
||||||
c.setCastSA(ability);
|
c.setCastSA(ability);
|
||||||
ability.setLastStateBattlefield(game.getLastStateBattlefield());
|
ability.setLastStateBattlefield(game.getLastStateBattlefield());
|
||||||
|
ability.setLastStateGraveyard(game.getLastStateGraveyard());
|
||||||
ability.setHostCard(game.getAction().moveToStack(c));
|
ability.setHostCard(game.getAction().moveToStack(c));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -285,7 +286,7 @@ public class HumanPlaySpellAbility {
|
|||||||
}
|
}
|
||||||
card.setXManaCostPaid(value);
|
card.setXManaCostPaid(value);
|
||||||
}
|
}
|
||||||
} else if (needX && manaCost != null && manaCost.getMana().isZero()) {
|
} else if (needX && manaCost != null && manaCost.getMana().isZero() && ability.isSpell()) {
|
||||||
card.setXManaCostPaid(0);
|
card.setXManaCostPaid(0);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user