* Fixed token creation of Shark Typhoon (fixes #6572).

This commit is contained in:
LevelX2 2020-05-25 17:17:17 +02:00
parent 5743e4361e
commit 365754b6f7

View file

@ -31,7 +31,7 @@ public final class SharkTyphoon extends CardImpl {
// Whenever you cast a noncreature spell, create an X/X blue Shark creature token with flying, where X is that spell's converted mana cost.
this.addAbility(new SpellCastControllerTriggeredAbility(
new SharkTyphoonCastEffect(), StaticFilters.FILTER_SPELL_A_NON_CREATURE, false
new SharkTyphoonCastEffect(), StaticFilters.FILTER_SPELL_A_NON_CREATURE, false, true
));
// Cycling {X}{1}{U}
@ -69,7 +69,7 @@ class SharkTyphoonCastEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Spell spell = game.getSpell(targetPointer.getFirst(game, source));
Spell spell = game.getSpell(getTargetPointer().getFirst(game, source));
int xValue = 0;
if (spell != null) {
xValue = spell.getConvertedManaCost();