mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Disturb check for Enchantment
This commit is contained in:
@@ -178,10 +178,13 @@ public final class GameActionUtil {
|
|||||||
final String[] k = keyword.split(":");
|
final String[] k = keyword.split(":");
|
||||||
final Cost disturbCost = new Cost(k[1], true);
|
final Cost disturbCost = new Cost(k[1], true);
|
||||||
|
|
||||||
final SpellAbility backSA = source.getAlternateState().getFirstAbility();
|
SpellAbility newSA;
|
||||||
SpellAbility newSA = source.getAlternateState().getType().isCreature() ?
|
if (source.getAlternateState().getType().isEnchantment()) {
|
||||||
sa.copyWithManaCostReplaced(activator, disturbCost) :
|
newSA = source.getAlternateState().getFirstAbility().copyWithManaCostReplaced(activator,
|
||||||
backSA.copyWithManaCostReplaced(activator, disturbCost);
|
disturbCost);
|
||||||
|
} else {
|
||||||
|
newSA = sa.copyWithManaCostReplaced(activator, disturbCost);
|
||||||
|
}
|
||||||
newSA.setActivatingPlayer(activator);
|
newSA.setActivatingPlayer(activator);
|
||||||
|
|
||||||
newSA.putParam("PrecostDesc", "Disturb —");
|
newSA.putParam("PrecostDesc", "Disturb —");
|
||||||
|
|||||||
Reference in New Issue
Block a user