mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
[NPH] Jin-Gitaxias, Core Augur
This commit is contained in:
parent
b559ea03d7
commit
70ebccca7e
4 changed files with 150 additions and 60 deletions
|
|
@ -0,0 +1,40 @@
|
|||
package mage.abilities.common;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
/**
|
||||
* Beginning of controlled end step triggered ability
|
||||
* @author Loki
|
||||
*/
|
||||
public class BeginningOfYourEndStepTriggeredAbility extends TriggeredAbilityImpl<BeginningOfYourEndStepTriggeredAbility> {
|
||||
public BeginningOfYourEndStepTriggeredAbility(Effect effect, boolean optional) {
|
||||
super(Constants.Zone.BATTLEFIELD, effect, optional);
|
||||
}
|
||||
|
||||
public BeginningOfYourEndStepTriggeredAbility(final BeginningOfYourEndStepTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public BeginningOfYourEndStepTriggeredAbility copy() {
|
||||
return new BeginningOfYourEndStepTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.END_PHASE_PRE && event.getPlayerId().equals(this.controllerId)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "At the beginning of your end step, " + modes.getText();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue