mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
* Fixed calculation of converted mana costs for spells on the stack (fixes #459). Added test. Some minor formattings.
This commit is contained in:
parent
acd5db9e62
commit
6bd1a9c7ca
8 changed files with 117 additions and 8 deletions
|
|
@ -97,7 +97,7 @@ class HisokasGuardGainAbilityTargetEffect extends ContinuousEffectImpl {
|
|||
|
||||
public HisokasGuardGainAbilityTargetEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||
staticText = "Target creature you control other than Hisoka's Guard has shroud for as long as Hisoka's Guard remains tapped";
|
||||
staticText = "Target creature you control other than {this} has shroud for as long as {this} remains tapped";
|
||||
this.ability = ShroudAbility.getInstance();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class JelevaNephaliasScourgeEffect extends OneShotEffect {
|
|||
|
||||
public JelevaNephaliasScourgeEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "each player exiles the top X cards of his or her library, where X is the amount of mana spent to cast Jeleva";
|
||||
this.staticText = "each player exiles the top X cards of his or her library, where X is the amount of mana spent to cast {this}";
|
||||
}
|
||||
|
||||
public JelevaNephaliasScourgeEffect(final JelevaNephaliasScourgeEffect effect) {
|
||||
|
|
@ -174,7 +174,7 @@ class JelevaNephaliasCastEffect extends OneShotEffect {
|
|||
|
||||
class JelevaNephaliasWatcher extends Watcher {
|
||||
|
||||
private Map<Integer, Integer> manaSpendToCast = new HashMap<Integer, Integer>(); // cast
|
||||
private Map<Integer, Integer> manaSpendToCast = new HashMap<>(); // cast
|
||||
|
||||
public JelevaNephaliasWatcher() {
|
||||
super("ManaPaidToCastJelevaNephalias", WatcherScope.CARD);
|
||||
|
|
|
|||
|
|
@ -105,6 +105,6 @@ class EidolonOfTheGreatRevelTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever a player casts a spell with converted mana cost 3 or less, Eidolon of the Great Revel deals 2 damage to that player.";
|
||||
return "Whenever a player casts a spell with converted mana cost 3 or less, {this} deals 2 damage to that player.";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue