mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Added AtTheBeginOfCombatDelayedTriggeredAbility.
This commit is contained in:
parent
bb43f5194b
commit
d6277449d5
1 changed files with 34 additions and 0 deletions
|
@ -0,0 +1,34 @@
|
||||||
|
package mage.abilities.common.delayed;
|
||||||
|
|
||||||
|
import mage.abilities.DelayedTriggeredAbility;
|
||||||
|
import mage.abilities.effects.Effect;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.game.events.GameEvent;
|
||||||
|
|
||||||
|
public class AtTheBeginOfCombatDelayedTriggeredAbility extends DelayedTriggeredAbility<AtTheBeginOfCombatDelayedTriggeredAbility> {
|
||||||
|
public AtTheBeginOfCombatDelayedTriggeredAbility(Effect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AtTheBeginOfCombatDelayedTriggeredAbility(AtTheBeginOfCombatDelayedTriggeredAbility ability) {
|
||||||
|
super(ability);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AtTheBeginOfCombatDelayedTriggeredAbility copy() {
|
||||||
|
return new AtTheBeginOfCombatDelayedTriggeredAbility(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
|
if (event.getType() == GameEvent.EventType.COMBAT_PHASE_PRE) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getRule() {
|
||||||
|
return " At the beginning of the next combat, " + modes.getText();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue