forked from External/mage
simplified and consolidated werewolf triggered abilities
This commit is contained in:
parent
378d596e3c
commit
afcdc0f23a
68 changed files with 472 additions and 859 deletions
|
|
@ -0,0 +1,35 @@
|
|||
package mage.abilities.common;
|
||||
|
||||
import mage.abilities.condition.common.NoSpellsWereCastLastTurnCondition;
|
||||
import mage.abilities.effects.common.TransformSourceEffect;
|
||||
import mage.constants.TargetController;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class WerewolfFrontTriggeredAbility extends BeginningOfUpkeepTriggeredAbility {
|
||||
|
||||
public WerewolfFrontTriggeredAbility() {
|
||||
super(new TransformSourceEffect(true), TargetController.ANY, false);
|
||||
}
|
||||
|
||||
private WerewolfFrontTriggeredAbility(final WerewolfFrontTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkInterveningIfClause(Game game) {
|
||||
return NoSpellsWereCastLastTurnCondition.instance.apply(game, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WerewolfFrontTriggeredAbility copy() {
|
||||
return new WerewolfFrontTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "At the beginning of each upkeep, if no spells were cast last turn, transform {this}.";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue