Merge pull request #1044 from xaviermd/CardScript--CLB--Alaundo-the-Seer

Card Script for Alaundo the Seer.
This commit is contained in:
Anthony Calosa
2022-07-10 06:39:34 +08:00
committed by GitHub
3 changed files with 23 additions and 0 deletions

View File

@@ -1448,6 +1448,13 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
}
}
}
if (ZoneType.Exile.equals(destination) && sa.hasParam("WithCountersType")) {
CounterType cType = CounterType.getType(sa.getParam("WithCountersType"));
int cAmount = AbilityUtils.calculateAmount(sa.getOriginalHost(), sa.getParamOrDefault("WithCountersAmount", "1"), sa);
GameEntityCounterTable table = new GameEntityCounterTable();
movedCard.addCounter(cType, cAmount, player, table);
table.replaceCounterEffect(game, sa, true);
}
}
if (((!ZoneType.Battlefield.equals(destination) && changeType != null && !defined && !changeType.equals("Card"))