mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
fix tooltip and Hoofprints Of The Stag
This commit is contained in:
parent
17df45a7fd
commit
d96c983778
4 changed files with 45 additions and 2 deletions
|
|
@ -34,7 +34,9 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
|
||||
import mage.abilities.common.DrawCardTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||
import mage.abilities.costs.common.YourTurnCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
|
|
@ -58,8 +60,9 @@ public class HoofprintsOfTheStag extends CardImpl<HoofprintsOfTheStag> {
|
|||
this.subtype.add("Elemental");
|
||||
this.color.setWhite(true);
|
||||
this.addAbility(new DrawCardTriggeredAbility(new AddCountersSourceEffect(CounterType.HOOFPRINT.createInstance(1)), true));
|
||||
Ability ability = new ActivateAsSorceryActivatedAbility(Constants.Zone.BATTLEFIELD, new CreateTokenEffect(new WhiteElementalToken(), 1), new ManaCostsImpl("{2}{W}"));
|
||||
Ability ability = new SimpleActivatedAbility(Constants.Zone.BATTLEFIELD, new CreateTokenEffect(new WhiteElementalToken(), 1), new ManaCostsImpl("{2}{W}"));
|
||||
ability.addCost(new RemoveCountersSourceCost(CounterType.HOOFPRINT.createInstance(4)));
|
||||
ability.addCost(new YourTurnCost());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class BirthingPod extends CardImpl<BirthingPod> {
|
|||
class BirthingPodEffect extends OneShotEffect<BirthingPodEffect> {
|
||||
BirthingPodEffect() {
|
||||
super(Constants.Outcome.Benefit);
|
||||
staticText = "Search your library for a creature card with converted mana cost equal to 1 plus the sacrificed creature's converted mana cost, put that card onto the battlefield, then shuffle your library. Activate this ability only any time you could cast a sorcery";
|
||||
staticText = "Search your library for a creature card with converted mana cost equal to 1 plus the sacrificed creature's converted mana cost, put that card onto the battlefield, then shuffle your library";
|
||||
}
|
||||
|
||||
BirthingPodEffect(final BirthingPodEffect effect) {
|
||||
|
|
|
|||
|
|
@ -19,4 +19,9 @@ public class ActivateAsSorceryActivatedAbility extends ActivatedAbilityImpl<Acti
|
|||
public ActivateAsSorceryActivatedAbility copy() {
|
||||
return new ActivateAsSorceryActivatedAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return super.getRule() + " Activate this ability only any time you could cast a sorcery.";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
35
Mage/src/mage/abilities/costs/common/YourTurnCost.java
Normal file
35
Mage/src/mage/abilities/costs/common/YourTurnCost.java
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
package mage.abilities.costs.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.CostImpl;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* "Activate this ability only during your turn" cost
|
||||
**/
|
||||
public class YourTurnCost extends CostImpl<YourTurnCost> {
|
||||
public YourTurnCost() {
|
||||
this.text = "Activate this ability only during your turn";
|
||||
}
|
||||
|
||||
public YourTurnCost(final YourTurnCost cost) {
|
||||
super(cost);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPay(UUID sourceId, UUID controllerId, Game game) {
|
||||
return game.getActivePlayerId().equals(controllerId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public YourTurnCost copy() {
|
||||
return new YourTurnCost(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue