Examples of PlayerAttackedWatcher


Examples of mage.watchers.common.PlayerAttackedWatcher

        // <em>Raid</em> - When Mardu Skullhunter enters the battlefield, if you attacked with a creature this turn, target opponent discards a card.
        Ability ability = new ConditionalTriggeredAbility(new EntersBattlefieldTriggeredAbility(new DiscardTargetEffect(1)), RaidCondition.getInstance(),
                 "<i>Raid</i> - When {this} enters the battlefield, if you attacked with a creature this turn, target opponent discards a card.", false);       
        ability.addTarget(new TargetOpponent());
        this.addAbility(ability);
        this.addWatcher(new PlayerAttackedWatcher());
    }
View Full Code Here

Examples of mage.watchers.common.PlayerAttackedWatcher

        effect.setText("When you cast your next instant or sorcery spell this turn, copy that spell. You may choose new targets for the copy.");
        this.getSpellAbility().addEffect(effect);
       
        // <i>Raid</i> - If you attacked with a creature this turn, when you cast your next instant or sorcery spell this turn, copy that spell an additional time. You may choose new targets for the copy.
        this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new CreateDelayedTriggeredAbilityEffect(new HowlOfTheHordeDelayedTriggeredAbility()), RaidCondition.getInstance(), "<br><br><i>Raid</i> - If you attacked with a creature this turn, when you cast your next instant or sorcery spell this turn, copy that spell an additional time. You may choose new targets for the copy."));
        this.addWatcher(new PlayerAttackedWatcher());
    }
View Full Code Here

Examples of mage.watchers.common.PlayerAttackedWatcher

        Ability ability = new ActivateIfConditionActivatedAbility(
                Zone.BATTLEFIELD, new HideawayPlayEffect(), new ManaCostsImpl("{W}"), WindbriskHeightsAttackersCondition.getInstance());
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);    
       
        this.addWatcher(new PlayerAttackedWatcher());

    }
View Full Code Here

Examples of mage.watchers.common.PlayerAttackedWatcher

        return fInstance;
    }

    @Override
    public boolean apply(Game game, Ability source) {
        PlayerAttackedWatcher watcher = (PlayerAttackedWatcher) game.getState().getWatchers().get("PlayerAttackedWatcher");
        return watcher != null && watcher.getNumberOfAttackersCurrentTurn(source.getControllerId()) >= 3;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.