* Finished card attribute change handling for color of cards (card subtype not supported yet) related to #408

This commit is contained in:
LevelX2 2015-06-10 14:00:37 +02:00
parent 199ff16c0c
commit 93dcf2d59f
6 changed files with 131 additions and 34 deletions

View file

@ -37,7 +37,6 @@ import mage.constants.SetType;
* @author LevelX2
*/
public class Conspiracy extends ExpansionSet {
private static final Conspiracy fINSTANCE = new Conspiracy();

View file

@ -54,6 +54,7 @@ public class CeruleanWisps extends CardImpl {
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
this.getSpellAbility().addEffect(new BecomesColorTargetEffect(ObjectColor.BLUE, Duration.EndOfTurn));
this.getSpellAbility().addEffect(new UntapTargetEffect());
// Draw a card.
this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
}

View file

@ -78,15 +78,15 @@ class DragonsClawAbility extends TriggeredAbilityImpl {
return new DragonsClawAbility(this);
}
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == EventType.SPELL_CAST;
}
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == EventType.SPELL_CAST) {
Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && spell.getColor(game).isRed()) {
return true;
}
}
return false;
Spell spell = game.getStack().getSpell(event.getTargetId());
return spell != null && spell.getColor(game).isRed();
}
@Override