mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[MID] Implemented Brimstone Vandal
This commit is contained in:
parent
10655b9a36
commit
586fd51179
4 changed files with 144 additions and 1 deletions
|
|
@ -0,0 +1,52 @@
|
|||
package mage.abilities.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
* TODO: this is just a placeholder for the actual ability
|
||||
*/
|
||||
public class BecomeDayAsEntersAbility extends EntersBattlefieldAbility {
|
||||
|
||||
public BecomeDayAsEntersAbility() {
|
||||
super(new BecomeDayEffect());
|
||||
}
|
||||
|
||||
private BecomeDayAsEntersAbility(final BecomeDayAsEntersAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BecomeDayAsEntersAbility copy() {
|
||||
return new BecomeDayAsEntersAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "If it's neither day nor night, it becomes day as {this} enters the battlefield.";
|
||||
}
|
||||
}
|
||||
|
||||
class BecomeDayEffect extends OneShotEffect {
|
||||
|
||||
BecomeDayEffect() {
|
||||
super(Outcome.Benefit);
|
||||
}
|
||||
|
||||
private BecomeDayEffect(final BecomeDayEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BecomeDayEffect copy() {
|
||||
return new BecomeDayEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
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
|
||||
* TODO: this is just a placeholder for the actual ability
|
||||
*/
|
||||
public class BecomesDayOrNightTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
public BecomesDayOrNightTriggeredAbility(Effect effect) {
|
||||
super(Zone.BATTLEFIELD, effect, false);
|
||||
}
|
||||
|
||||
private BecomesDayOrNightTriggeredAbility(final BecomesDayOrNightTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BecomesDayOrNightTriggeredAbility copy() {
|
||||
return new BecomesDayOrNightTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTriggerPhrase() {
|
||||
return "Whenever day becomes night or night becomes day, ";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue