- Added Kentaro, the Smiling Cat

This commit is contained in:
swordshine
2013-05-10 13:05:25 +00:00
parent 12604e8697
commit 42b18e2fbc
3 changed files with 16 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -5753,6 +5753,7 @@ res/cardsfolder/k/kemba_kha_regent.txt svneol=native#text/plain
res/cardsfolder/k/kembas_legion.txt -text
res/cardsfolder/k/kembas_skyguard.txt svneol=native#text/plain
res/cardsfolder/k/kemuri_onna.txt svneol=native#text/plain
res/cardsfolder/k/kentaro_the_smiling_cat.txt -text
res/cardsfolder/k/kessig.txt -text
res/cardsfolder/k/kessig_cagebreakers.txt -text
res/cardsfolder/k/kessig_malcontents.txt -text

View File

@@ -0,0 +1,9 @@
Name:Kentaro, the Smiling Cat
ManaCost:1 W
Types:Legendary Creature Human Samurai
PT:2/1
K:Bushido 1
S:Mode$ Continuous | Affected$ Card.Samurai+YouCtrl | AddHiddenKeyword$ Alternative Cost ConvertedManaCost | AffectedZone$ Hand,Graveyard,Exile,Library | Description$ You may pay X rather than pay the mana cost for Samurai spells you cast, where X is that spell's converted mana cost.
SVar:Picture:http://www.wizards.com/global/images/magic/general/kentaro_the_smiling_cat.jpg
Oracle:Bushido 1 (When this blocks or becomes blocked, it gets +1/+1 until end of turn.)\nYou may pay {X} rather than pay the mana cost for Samurai spells you cast, where X is that spell's converted mana cost.
SetInfo:BOK Rare

View File

@@ -1219,7 +1219,12 @@ public final class GameActionUtil {
if (sa.isSpell() && keyword.startsWith("Alternative Cost")) {
final SpellAbility newSA = sa.copy();
newSA.setBasicSpell(false);
final Cost cost = new Cost(keyword.substring(17), false).add(newSA.getPayCosts().copyWithNoMana());
String kw = keyword;
if (keyword.contains("ConvertedManaCost")) {
final String cmc = Integer.toString(sa.getSourceCard().getCMC());
kw = keyword.replace("ConvertedManaCost", cmc);
}
final Cost cost = new Cost(kw.substring(17), false).add(newSA.getPayCosts().copyWithNoMana());
newSA.setPayCosts(cost);
newSA.setDescription(sa.getDescription() + " (by paying " + cost.toSimpleString() + " instead of its mana cost)");
alternatives.add(newSA);