mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Some minor changes.
This commit is contained in:
parent
4243a1d3a3
commit
3f771feb52
2 changed files with 9 additions and 14 deletions
|
@ -82,16 +82,12 @@ class BraidOfFireCost extends CostImpl {
|
|||
|
||||
@Override
|
||||
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
|
||||
Player player = game.getPlayer(controllerId);
|
||||
if (player != null) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return game.getPlayer(controllerId) != null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public BraidOfFireCost copy() {
|
||||
return new BraidOfFireCost(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,18 +36,17 @@ import mage.abilities.costs.common.TapSourceCost;
|
|||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.abilities.keyword.FirstStrikeAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.AttachmentType;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Rarity;
|
||||
import mage.constants.Zone;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.TargetPlayer;
|
||||
|
@ -63,7 +62,7 @@ public class SurestrikeTrident extends CardImpl {
|
|||
this.expansionSetCode = "DST";
|
||||
this.subtype.add("Equipment");
|
||||
|
||||
// Equipped creature has first strike and "{tap}, Unattach Surestrike Trident: This creature deals damage equal to its power to target player."
|
||||
// Equipped creature has first strike and "{T}, Unattach Surestrike Trident: This creature deals damage equal to its power to target player."
|
||||
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FirstStrikeAbility.getInstance(), AttachmentType.EQUIPMENT));
|
||||
DynamicValue xValue = new SourcePermanentPowerCount();
|
||||
Effect effect = new DamageTargetEffect(xValue);
|
||||
|
@ -75,7 +74,7 @@ public class SurestrikeTrident extends CardImpl {
|
|||
effect.setText("and \"{T}, Unattach {this}: This creature deals damage equal to its power to target player.\"");
|
||||
ability.addEffect(effect);
|
||||
this.addAbility(ability);
|
||||
|
||||
|
||||
// Equip {4}
|
||||
this.addAbility(new EquipAbility(Outcome.Benefit, new GenericManaCost(4)));
|
||||
}
|
||||
|
@ -117,7 +116,7 @@ class SurestrikeTridentUnattachCost extends CostImpl {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return paid;
|
||||
}
|
||||
|
@ -142,4 +141,4 @@ class SurestrikeTridentUnattachCost extends CostImpl {
|
|||
return new SurestrikeTridentUnattachCost(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue