- Added Rogue Kavu (using "Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn" keyword, hmm maybe I should've expanded beached as' "Whenever" keyword instead).

This commit is contained in:
jendave
2011-08-06 05:19:37 +00:00
parent 672e380af9
commit a694d5b1b0
2 changed files with 43 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
Rogue Kavu
1 R
Creature Kavu
no text
1/1
Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn.
Niv-Mizzet, the Firemind Niv-Mizzet, the Firemind
2 U U R R 2 U U R R
Legendary Creature Dragon Wizard Legendary Creature Dragon Wizard

View File

@@ -971,7 +971,42 @@ public class CombatUtil {
AllZone.Stack.add(ability); AllZone.Stack.add(ability);
}//Raging Ravine }//Raging Ravine
// if ((AllZone.Combat.getAttackers().length + AllZone.pwCombat.getAttackers().length) == 1)
{
if (c.getKeyword().contains("Whenever this creature attacks alone, it gets +2/+0 until end of turn") ||
c.getKeyword().contains("Whenever CARDNAME attacks alone, it gets +2/+0 until end of turn"))
{
final Card charger = c;
Ability ability2 = new Ability(c, "0") {
@Override
public void resolve() {
final Command untilEOT = new Command() {
private static final long serialVersionUID = -6039349249335745813L;
public void execute() {
if(AllZone.GameAction.isCardInPlay(charger)) {
charger.addTempAttackBoost(-2);
charger.addTempDefenseBoost(0);
}
}
};//Command
if(AllZone.GameAction.isCardInPlay(charger)) {
charger.addTempAttackBoost(2);
charger.addTempDefenseBoost(0);
AllZone.EndOfTurn.addUntil(untilEOT);
}
}//resolve
};//ability
ability2.setStackDescription(c.getName() + " - attacks alone and gets +2/+0 until EOT.");
AllZone.Stack.add(ability2);
}
}
if(c.getName().equals("Zhang He, Wei General") && !c.getCreatureAttackedThisCombat()) { if(c.getName().equals("Zhang He, Wei General") && !c.getCreatureAttackedThisCombat()) {