mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
SVars are set by ReadCard - SVar is not a keyword. - TODO: Remove SVar keyword handler from CardFactory.
This commit is contained in:
@@ -627,6 +627,7 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
// Support for using string variables to define Count$ for X or Y
|
||||
// Or just about any other String that a card object needs at any given time
|
||||
// TODO: To Be Removed
|
||||
while(hasKeyword(card, "SVar") != -1) {
|
||||
int n = hasKeyword(card, "SVar");
|
||||
if(n != -1) {
|
||||
@@ -10473,6 +10474,7 @@ public class CardFactory implements NewConstants {
|
||||
c.setType(sim.getType());
|
||||
c.setText(sim.getSpellText());
|
||||
c.setManaCost(sim.getManaCost());
|
||||
c.setSVars(sim.getSVars());
|
||||
|
||||
return c;
|
||||
}// copyStats()
|
||||
|
||||
Reference in New Issue
Block a user