mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
[LTR] Implement Sauron, the Dark Lord
This commit is contained in:
parent
c5d3bd3d29
commit
bcaaf4101e
4 changed files with 125 additions and 33 deletions
|
|
@ -0,0 +1,37 @@
|
|||
package mage.abilities.common;
|
||||
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class TheRingTemptsYouTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
public TheRingTemptsYouTriggeredAbility(Effect effect) {
|
||||
super(Zone.BATTLEFIELD, effect, false);
|
||||
setTriggerPhrase("Whenever the Ring tempts you, ");
|
||||
}
|
||||
|
||||
private TheRingTemptsYouTriggeredAbility(final TheRingTemptsYouTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheRingTemptsYouTriggeredAbility copy() {
|
||||
return new TheRingTemptsYouTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.TEMPTED_BY_RING;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return isControlledBy(event.getPlayerId());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue