fix ability cost on Tarrian's Journal (related to 7adbf45, more cleanup still needed on The Tomb of Aclazotz)

This commit is contained in:
xenohedron 2023-12-26 16:07:58 -05:00
parent 678d361877
commit 98ec7dbab1

View file

@ -1,13 +1,10 @@
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package mage.cards.t; package mage.cards.t;
import java.util.UUID; import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.ActivateAsSorceryActivatedAbility; import mage.abilities.common.ActivateAsSorceryActivatedAbility;
import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.DiscardHandCost;
import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.costs.mana.ManaCostsImpl;
@ -50,9 +47,11 @@ public class TarriansJournal extends CardImpl {
ability.addCost(new SacrificeTargetCost(filter)); ability.addCost(new SacrificeTargetCost(filter));
this.addAbility(ability); this.addAbility(ability);
// {2}, {T}, Discard your hand: Transform Tarrian's Journal.
this.addAbility(new TransformAbility()); this.addAbility(new TransformAbility());
Ability transformAbility = new SimpleActivatedAbility(new TransformSourceEffect(), new ManaCostsImpl("{2}")); Ability transformAbility = new SimpleActivatedAbility(new TransformSourceEffect(), new ManaCostsImpl<>("{2}"));
transformAbility.addCost(new TapSourceCost()); transformAbility.addCost(new TapSourceCost());
transformAbility.addCost(new DiscardHandCost());
this.addAbility(transformAbility); this.addAbility(transformAbility);
} }