mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Added Color.java and Card_Color.java
- Added a separate monitoring of a cards color, that handles color changing - Tokens now set Color when created. In general, tokens don't have mana costs and we'll need to remove setting of mana costs except in a few circumstances. - Updated Painter's Servant, Disciple of Kangee, and Wild Mongrel - A few things are still needed overall for this to work going forward, but it seems to be at a point to get this in.
This commit is contained in:
@@ -10781,6 +10781,21 @@ public class CardFactory implements NewConstants {
|
||||
}//getCard2
|
||||
|
||||
public Card postFactoryKeywords(Card card){
|
||||
card.addColor(card.getManaCost());
|
||||
int cardnameSpot = hasKeyword(card, "CARDNAME is ");
|
||||
if (cardnameSpot != -1){
|
||||
String color = "1";
|
||||
while(cardnameSpot != -1){
|
||||
if(cardnameSpot != -1) {
|
||||
String parse = card.getKeyword().get(cardnameSpot).toString();
|
||||
card.removeIntrinsicKeyword(parse);
|
||||
color += " " + Input_PayManaCostUtil.getShortColorString(parse.replace("CARDNAME is ","").replace(".", ""));
|
||||
cardnameSpot = hasKeyword(card, "CARDNAME is ");
|
||||
}
|
||||
}
|
||||
card.addColor(color);
|
||||
}
|
||||
|
||||
// this function should handle any keywords that need to be added after a spell goes through the factory
|
||||
if(hasKeyword(card, "Fading") != -1) {
|
||||
int n = hasKeyword(card, "Fading");
|
||||
|
||||
Reference in New Issue
Block a user