Merge pull request #2523 from tool4ever/disturbfix

Disturb fix
This commit is contained in:
Anthony Calosa
2023-02-22 03:54:14 +08:00
committed by GitHub

View File

@@ -2833,10 +2833,10 @@ public class CardFactoryUtil {
SpellAbility newSA;
if (host.getAlternateState().getType().hasSubtype("Aura")) {
newSA = host.getAlternateState().getFirstAbility().copyWithDefinedCost(disturbCost);
newSA.setCardState(host.getAlternateState());
} else {
newSA = new SpellPermanent(host, host.getAlternateState(), disturbCost);
}
newSA.setCardState(host.getAlternateState());
StringBuilder sbCost = new StringBuilder("Disturb");
if (!disturbCost.isOnlyManaCost()) { //Something other than a mana cost