mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Some fixes and minor changes.
This commit is contained in:
parent
e3ca906b05
commit
1d9df4a3bd
5 changed files with 11 additions and 17 deletions
|
@ -79,7 +79,7 @@ class ConsumeSpiritEffect extends OneShotEffect<ConsumeSpiritEffect> {
|
|||
|
||||
public ConsumeSpiritEffect() {
|
||||
super(Constants.Outcome.Damage);
|
||||
staticText = "Consume Spirit deals X damage to target creature or player and you gain X life.Spend only black mana on X";
|
||||
staticText = "Consume Spirit deals X damage to target creature or player and you gain X life. Spend only black mana on X";
|
||||
}
|
||||
|
||||
public ConsumeSpiritEffect(final ConsumeSpiritEffect effect) {
|
||||
|
|
|
@ -103,6 +103,6 @@ class ChandrasPhoenixTriggeredAbility extends TriggeredAbilityImpl<ChandrasPhoen
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever an opponent is dealt damage by a red instant or sorcery spell you control or by a red planeswalker you control, return {this} from your graveyard to your hand";
|
||||
return "Whenever an opponent is dealt damage by a red instant or sorcery spell you control or by a red planeswalker you control, return {this} from your graveyard to your hand.";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,8 +32,7 @@ import mage.Constants.CardType;
|
|||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksOrBlocksTriggeredAbility;
|
||||
import mage.abilities.effects.common.SacrificeEffect;
|
||||
import mage.abilities.effects.common.SacrificeTargetEffect;
|
||||
import mage.abilities.effects.common.SacrificeControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
|
||||
|
@ -53,7 +52,7 @@ public class LesserGargadon extends CardImpl<LesserGargadon> {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever Lesser Gargadon attacks or blocks, sacrifice a land.
|
||||
this.addAbility(new AttacksOrBlocksTriggeredAbility(new SacrificeEffect(new FilterLandPermanent(), 1, ""), false));
|
||||
this.addAbility(new AttacksOrBlocksTriggeredAbility(new SacrificeControllerEffect(new FilterLandPermanent(), 1, ""), false));
|
||||
}
|
||||
|
||||
public LesserGargadon(final LesserGargadon card) {
|
||||
|
|
|
@ -41,22 +41,22 @@ import mage.target.targetpointer.FixedTarget;
|
|||
public class SacrificeControllerEffect extends SacrificeEffect {
|
||||
|
||||
|
||||
public SacrificeControllerEffect ( FilterPermanent filter, DynamicValue count, String preText ) {
|
||||
public SacrificeControllerEffect(FilterPermanent filter, DynamicValue count, String preText ) {
|
||||
super(filter, count, preText);
|
||||
}
|
||||
|
||||
public SacrificeControllerEffect ( FilterPermanent filter, int count, String preText ) {
|
||||
this(filter, new StaticValue(count), preText);
|
||||
}
|
||||
public SacrificeControllerEffect(FilterPermanent filter, int count, String preText ) {
|
||||
this(filter, new StaticValue(count), preText);
|
||||
}
|
||||
|
||||
public SacrificeControllerEffect (final SacrificeControllerEffect effect ) {
|
||||
public SacrificeControllerEffect(final SacrificeControllerEffect effect ) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
this.targetPointer = new FixedTarget(source.getControllerId());
|
||||
return super.apply(game, source);
|
||||
this.targetPointer = new FixedTarget(source.getControllerId());
|
||||
return super.apply(game, source);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -34,11 +34,6 @@ import mage.abilities.effects.Effect;
|
|||
import mage.cards.Card;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* 702.94. Overload
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue