diff --git a/.gitattributes b/.gitattributes index 8cf68ad2ee9..21241438313 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3219,6 +3219,7 @@ res/cardsfolder/smokespew_invoker.txt -text svneol=native#text/plain res/cardsfolder/smoldering_butcher.txt -text svneol=native#text/plain res/cardsfolder/smoldering_crater.txt -text svneol=native#text/plain res/cardsfolder/smother.txt -text svneol=native#text/plain +res/cardsfolder/snake_cult_initiation.txt -text svneol=native#text/plain res/cardsfolder/snap.txt -text svneol=native#text/plain res/cardsfolder/snapping_drake.txt -text svneol=native#text/plain res/cardsfolder/sneaky_homunculus.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/snake_cult_initiation.txt b/res/cardsfolder/snake_cult_initiation.txt new file mode 100644 index 00000000000..a6e692ea4a9 --- /dev/null +++ b/res/cardsfolder/snake_cult_initiation.txt @@ -0,0 +1,9 @@ +Name:Snake Cult Initiation +ManaCost:3 B +Types:Enchantment Aura +Text:Enchanted creature has poisonous 3. +K:Enchant creature +K:enPump:Poisonous 3 +K:SVar:Rarity:Uncommon +K:SVar:Picture:http://www.wizards.com/global/images/magic/general/snake_cult_initiation.jpg +End diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 5f573a31876..439a81626de 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -5207,9 +5207,14 @@ public class GameActionUtil { DealsDamage_Whenever_Parameters[2] = c; AllZone.GameAction.CheckWheneverKeyword(c, "DealsDamage/Opponent", DealsDamage_Whenever_Parameters); - if (c.getKeyword().contains("Poisonous 1")) + if (c.hasStartOfKeyword("Poisonous")) { + int KeywordPosition = c.getKeywordPosition("Poisonous"); + String parse = c.getKeyword().get(KeywordPosition).toString(); + String k[] = parse.split(" "); + final int poison = Integer.parseInt(k[1]); final Card crd = c; + Ability ability = new Ability(c, "0") { public void resolve() @@ -5218,24 +5223,24 @@ public class GameActionUtil { final String opponent = AllZone.GameAction.getOpponent(player); if(opponent.equals(Constant.Player.Human)) - AllZone.Human_PoisonCounter.addPoisonCounters(1); + AllZone.Human_PoisonCounter.addPoisonCounters(poison); else - AllZone.Computer_PoisonCounter.addPoisonCounters(1); + AllZone.Computer_PoisonCounter.addPoisonCounters(poison); } }; StringBuilder sb = new StringBuilder(); sb.append(c); - sb.append(" - Poisonous 1: "); + sb.append(" - Poisonous: "); sb.append(AllZone.GameAction.getOpponent(c.getController())); - sb.append(" gets a poison counter."); + sb.append(" gets poison counters."); ability.setStackDescription(sb.toString()); ArrayList keywords = c.getKeyword(); for (int i=0;i