mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
[Un-cards] Minigame cards
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user