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:
xenohedron 2024-05-04 00:47:16 -04:00 committed by GitHub
parent b1b83dc5b8
commit fa728eafb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
84 changed files with 204 additions and 265 deletions

View file

@ -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
)