mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- ChangeZone Fizzling should only occur for Spells, not abilities or Triggers.
This commit is contained in:
@@ -362,8 +362,6 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
|||||||
* changeKnownOriginResolve.
|
* changeKnownOriginResolve.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param af
|
|
||||||
* a {@link forge.game.ability.AbilityFactory} object.
|
|
||||||
* @param sa
|
* @param sa
|
||||||
* a {@link forge.game.spellability.SpellAbility} object.
|
* a {@link forge.game.spellability.SpellAbility} object.
|
||||||
*/
|
*/
|
||||||
@@ -547,6 +545,10 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
|||||||
if (sa.hasParam("Fizzle")) {
|
if (sa.hasParam("Fizzle")) {
|
||||||
final FCollectionView<SpellAbility> spells = tgtC.getSpellAbilities();
|
final FCollectionView<SpellAbility> spells = tgtC.getSpellAbilities();
|
||||||
for (SpellAbility spell : spells) {
|
for (SpellAbility spell : spells) {
|
||||||
|
// Only fizzle spells, not anything else.
|
||||||
|
if (!spell.isSpell())
|
||||||
|
continue;
|
||||||
|
|
||||||
if (tgtC.isInZone(ZoneType.Exile) || tgtC.isInZone(ZoneType.Hand) || tgtC.isInZone(ZoneType.Stack)) {
|
if (tgtC.isInZone(ZoneType.Exile) || tgtC.isInZone(ZoneType.Hand) || tgtC.isInZone(ZoneType.Stack)) {
|
||||||
final SpellAbilityStackInstance si = game.getStack().getInstanceFromSpellAbility(spell);
|
final SpellAbilityStackInstance si = game.getStack().getInstanceFromSpellAbility(spell);
|
||||||
if (si != null) {
|
if (si != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user