mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
refactor: Cleanup CopyTargetStackObjectEffect (#12220)
* simplify constructors * rename class * adjust to accommodate any stack object * adjust all usages to main common class
This commit is contained in:
parent
b1b83dc5b8
commit
fa728eafb1
84 changed files with 204 additions and 265 deletions
|
|
@ -1,7 +1,7 @@
|
|||
package org.mage.test.cards.copy;
|
||||
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.CopyTargetSpellEffect;
|
||||
import mage.abilities.effects.common.CopyTargetStackObjectEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.SetTargetPointer;
|
||||
|
|
@ -21,7 +21,7 @@ public class CopyPermanentSpellTest extends CardTestPlayerBase {
|
|||
addCustomCardWithAbility(
|
||||
"Forker", playerA,
|
||||
new SpellCastControllerTriggeredAbility(
|
||||
new CopyTargetSpellEffect(true),
|
||||
new CopyTargetStackObjectEffect(true),
|
||||
StaticFilters.FILTER_SPELL, false,
|
||||
SetTargetPointer.SPELL
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue