Added Muddle the Mixture. The computer can not use this spell.

This commit is contained in:
jendave
2011-08-06 04:54:26 +00:00
parent 843bb6c700
commit 626394cad2
3 changed files with 41 additions and 0 deletions

View File

@@ -22635,6 +22635,40 @@ public class CardFactory implements NewConstants {
});//addSpellAbility
}//*************** END ************ END **************************
//*************** START *********** START **************************
else if(cardName.equals("Muddle the Mixture")) {
/*
* This card can not be used by the computer at this time.
*/
SpellAbility spell = new Spell(card) {
private static final long serialVersionUID = -2489268054171391552L;
@Override
public void resolve() {
SpellAbility sa = AllZone.Stack.pop();
AllZone.GameAction.moveToGraveyard(sa.getSourceCard());
}//resolve()
@Override
public boolean canPlay() {
if(AllZone.Stack.size() == 0) return false;
//see if spell is on stack and that opponent played it
String opponent = AllZone.GameAction.getOpponent(card.getController());
SpellAbility sa = AllZone.Stack.peek();
return sa.isSpell()
&& opponent.equals(sa.getSourceCard().getController())
&& CardFactoryUtil.isCounterable(sa.getSourceCard())
&& (sa.getSourceCard().isInstant() || sa.getSourceCard().isSorcery());
}//canPlay()
};//SpellAbility
card.clearSpellAbility();
spell.setDescription("Counter target instant or sorcery spell.");
spell.setStackDescription("Muddle The Mixture - Counters target instant or sorcery.");
card.addSpellAbility(spell);
}//*************** END ************ END **************************
//*************** START ********** START *************************
if (cardName.equals("Finest Hour") || cardName.equals("Gaea's Anthem") ||
cardName.equals("Glorious Anthem"))