- Completed the Poisonous keyword.

- Added Snake Cult Initiation.
This commit is contained in:
jendave
2011-08-06 07:20:01 +00:00
parent f9527723a3
commit 5a6a00293f
3 changed files with 21 additions and 6 deletions

1
.gitattributes vendored
View File

@@ -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

View File

@@ -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

View File

@@ -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<String> keywords = c.getKeyword();
for (int i=0;i<keywords.size();i++)
{
if (keywords.get(i).equals("Poisonous 1"))
if (keywords.get(i).contains("Poisonous"))
AllZone.Stack.add(ability);
}
}