- 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:
jendave
2011-08-06 08:17:47 +00:00
parent b642570935
commit 99f1685aa9
12 changed files with 426 additions and 188 deletions

View File

@@ -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");