add Afterlife (from Mercadian Masques)

This commit is contained in:
jendave
2011-08-06 08:23:55 +00:00
parent 8f924e2ff4
commit 5e5527b65f
3 changed files with 16 additions and 4 deletions

1
.gitattributes vendored
View File

@@ -65,6 +65,7 @@ res/cardsfolder/aetherflame_wall.txt -text svneol=native#text/plain
res/cardsfolder/aethersnipe.txt -text svneol=native#text/plain res/cardsfolder/aethersnipe.txt -text svneol=native#text/plain
res/cardsfolder/affa_guard_hound.txt -text svneol=native#text/plain res/cardsfolder/affa_guard_hound.txt -text svneol=native#text/plain
res/cardsfolder/afflict.txt -text svneol=native#text/plain res/cardsfolder/afflict.txt -text svneol=native#text/plain
res/cardsfolder/afterlife.txt -text svneol=native#text/plain
res/cardsfolder/ageless_entity.txt -text svneol=native#text/plain res/cardsfolder/ageless_entity.txt -text svneol=native#text/plain
res/cardsfolder/agent_of_masks.txt -text svneol=native#text/plain res/cardsfolder/agent_of_masks.txt -text svneol=native#text/plain
res/cardsfolder/agent_of_shauku.txt -text svneol=native#text/plain res/cardsfolder/agent_of_shauku.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Afterlife
ManaCost:2 W
Types:Instant
Text:Destroy target creature. It can't be regenerated. Its controller puts a 1/1 white Spirit creature token with flying onto the battlefield.
K:spDestroyTgt:Creature:NoRegen:Drawback$MakeToken<>1<>Spirit<>W 1 1 Spirit<>TargetController<>W<>Creature;Spirit<>1<>1<>Flying
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/afterlife.jpg
End

View File

@@ -3945,16 +3945,19 @@ public class CardFactoryUtil {
final int defense = Integer.valueOf(k[8]); final int defense = Integer.valueOf(k[8]);
final String[] keywords = k[9].split(";"); final String[] keywords = k[9].split(";");
String controller = controllerString.equals("Controller") ? cardController : Opp; String controller = "";
if(keywords[0].equals("None")) keywords[0] = ""; if(controllerString.equals("Controller")) controller = cardController;
else if(controllerString.equals("Opponent")) controller = Opp;
else if(controllerString.equals("TargetController"))controller = TgtC.getController();
if(keywords[0].equals("None")) keywords[0] = "";
int num = xString ? CardFactoryUtil.xCount(TgtC, numString) : Integer.valueOf(numString); int num = xString ? CardFactoryUtil.xCount(TgtC, numString) : Integer.valueOf(numString);
for(int i = 0; i < num; i ++ ){ for(int i = 0; i < num; i ++ ){
CardFactoryUtil.makeToken(name, imageName, controller, manaCost, types, attack, defense, keywords); CardFactoryUtil.makeToken(name, imageName, controller, manaCost, types, attack, defense, keywords);
} }
}//end MakeToken drawback }//end MakeToken drawback
if(d[0].contains("ReturnFromYard")) // placeholder for effect if(d[0].contains("ReturnFromYard")) // placeholder for effect
X = X + 0; X = X + 0;