mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
- Fixed #7034. Text issue.
This commit is contained in:
parent
823b383a7f
commit
fbdb2456e9
1 changed files with 12 additions and 16 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.b;
|
package mage.cards.b;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
@ -10,8 +9,6 @@ import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.abilities.effects.ContinuousRuleModifyingEffectImpl;
|
import mage.abilities.effects.ContinuousRuleModifyingEffectImpl;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.combat.AttacksIfAbleTargetEffect;
|
import mage.abilities.effects.common.combat.AttacksIfAbleTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
|
||||||
import mage.abilities.keyword.AttacksThisTurnMarkerAbility;
|
|
||||||
import mage.abilities.keyword.FlyingAbility;
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
|
|
@ -25,12 +22,12 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
* @author jeffwadsworth
|
* @author jeffwadsworth
|
||||||
*/
|
*/
|
||||||
public final class BasandraBattleSeraph extends CardImpl {
|
public final class BasandraBattleSeraph extends CardImpl {
|
||||||
|
|
||||||
public BasandraBattleSeraph(UUID ownerId, CardSetInfo setInfo) {
|
public BasandraBattleSeraph(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{W}");
|
||||||
addSuperType(SuperType.LEGENDARY);
|
addSuperType(SuperType.LEGENDARY);
|
||||||
this.subtype.add(SubType.ANGEL);
|
this.subtype.add(SubType.ANGEL);
|
||||||
|
|
||||||
this.power = new MageInt(4);
|
this.power = new MageInt(4);
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
|
@ -44,16 +41,15 @@ public final class BasandraBattleSeraph extends CardImpl {
|
||||||
Effect effect = new AttacksIfAbleTargetEffect(Duration.EndOfTurn);
|
Effect effect = new AttacksIfAbleTargetEffect(Duration.EndOfTurn);
|
||||||
effect.setOutcome(Outcome.Detriment);
|
effect.setOutcome(Outcome.Detriment);
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{R}"));
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{R}"));
|
||||||
ability.addEffect(new GainAbilityTargetEffect(AttacksThisTurnMarkerAbility.getInstance(), Duration.EndOfTurn, null));
|
|
||||||
ability.addTarget(new TargetCreaturePermanent());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public BasandraBattleSeraph(final BasandraBattleSeraph card) {
|
public BasandraBattleSeraph(final BasandraBattleSeraph card) {
|
||||||
super(card);
|
super(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BasandraBattleSeraph copy() {
|
public BasandraBattleSeraph copy() {
|
||||||
return new BasandraBattleSeraph(this);
|
return new BasandraBattleSeraph(this);
|
||||||
|
|
@ -61,31 +57,31 @@ public final class BasandraBattleSeraph extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
class BasandraBattleSeraphEffect extends ContinuousRuleModifyingEffectImpl {
|
class BasandraBattleSeraphEffect extends ContinuousRuleModifyingEffectImpl {
|
||||||
|
|
||||||
public BasandraBattleSeraphEffect() {
|
public BasandraBattleSeraphEffect() {
|
||||||
super(Duration.EndOfTurn, Outcome.Neutral);
|
super(Duration.EndOfTurn, Outcome.Neutral);
|
||||||
staticText = "Players can't cast spells during combat";
|
staticText = "Players can't cast spells during combat";
|
||||||
}
|
}
|
||||||
|
|
||||||
public BasandraBattleSeraphEffect(final BasandraBattleSeraphEffect effect) {
|
public BasandraBattleSeraphEffect(final BasandraBattleSeraphEffect effect) {
|
||||||
super(effect);
|
super(effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BasandraBattleSeraphEffect copy() {
|
public BasandraBattleSeraphEffect copy() {
|
||||||
return new BasandraBattleSeraphEffect(this);
|
return new BasandraBattleSeraphEffect(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checksEventType(GameEvent event, Game game) {
|
public boolean checksEventType(GameEvent event, Game game) {
|
||||||
return event.getType() == GameEvent.EventType.CAST_SPELL;
|
return event.getType() == GameEvent.EventType.CAST_SPELL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
if (game.getPhase().getType() == TurnPhase.COMBAT) {
|
if (game.getPhase().getType() == TurnPhase.COMBAT) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue