mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
* Finished card attribute change handling for color of cards (card subtype not supported yet) related to #408
This commit is contained in:
parent
199ff16c0c
commit
93dcf2d59f
6 changed files with 131 additions and 34 deletions
|
|
@ -37,7 +37,6 @@ import mage.constants.SetType;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
|
||||
public class Conspiracy extends ExpansionSet {
|
||||
|
||||
private static final Conspiracy fINSTANCE = new Conspiracy();
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue