mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix SVar fallback for Splice (#6072)
This commit is contained in:
@@ -19,7 +19,6 @@ package forge.game.spellability;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import forge.card.CardStateName;
|
||||
import forge.game.IHasSVars;
|
||||
import forge.game.ability.AbilityFactory;
|
||||
import forge.game.ability.ApiType;
|
||||
@@ -107,7 +106,8 @@ public final class AbilitySub extends SpellAbility implements java.io.Serializab
|
||||
|
||||
@Override
|
||||
protected IHasSVars getSVarFallback() {
|
||||
if (getCardState() != null && getCardStateName().equals(CardStateName.RightSplit)) {
|
||||
// fused or spliced
|
||||
if (getRootAbility().getCardState() != getCardState()) {
|
||||
return getCardState();
|
||||
}
|
||||
return super.getSVarFallback();
|
||||
|
||||
Reference in New Issue
Block a user