[Un-cards] Minigame cards

This commit is contained in:
Adam Pantel
2021-03-07 17:26:12 -05:00
parent f97c3e06ad
commit dcda2ade1d
4 changed files with 41 additions and 1 deletions

View File

@@ -1678,6 +1678,7 @@ public class GameAction {
}
/** Delivers a message to all players. (use reveal to show Cards) */
// TODO: Refactor for spelling
public void nofityOfValue(SpellAbility saSource, GameObject relatedTarget, String value, Player playerExcept) {
for (Player p : game.getPlayers()) {
if (playerExcept == p) continue;

View File

@@ -76,7 +76,7 @@ public class ChooseGenericEffect extends SpellAbilityEffect {
String chosenValue = chosenSA.getDescription();
if (sa.hasParam("ShowChoice")) {
boolean dontNotifySelf = sa.getParam("ShowChoice").equals("ExceptSelf");
p.getGame().getAction().nofityOfValue(sa, p, chosenValue, dontNotifySelf ? sa.getActivatingPlayer() : null);
p.getGame().getAction().nofityOfValue(sa, p, chosenValue, dontNotifySelf ? p : null);
}
if (sa.hasParam("SetChosenMode")) {
sa.getHostCard().setChosenMode(chosenValue);