mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
MakeCardEffect - allow made cards to be tokens
This commit is contained in:
@@ -37,6 +37,9 @@ public class MakeCardEffect extends SpellAbilityEffect {
|
|||||||
if (!name.equals("")) {
|
if (!name.equals("")) {
|
||||||
while (amount > 0) {
|
while (amount > 0) {
|
||||||
Card card = Card.fromPaperCard(StaticData.instance().getCommonCards().getUniqueByName(name), player);
|
Card card = Card.fromPaperCard(StaticData.instance().getCommonCards().getUniqueByName(name), player);
|
||||||
|
if (sa.hasParam("IsToken")) {
|
||||||
|
card.setToken(true);
|
||||||
|
}
|
||||||
if (!sa.hasParam("NotToken")) {
|
if (!sa.hasParam("NotToken")) {
|
||||||
card.setTokenCard(true);
|
card.setTokenCard(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user