From e54ed7931e1aab7c929bcfbbac9e68d5dc2be1eb Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Sun, 3 Mar 2024 10:25:06 +0100 Subject: [PATCH] Convoked fix (#4777) * AbilityUtils: fix Convoked for PutCounter * Slime Against Humanity: ClearRemembered --- forge-game/src/main/java/forge/game/ability/AbilityUtils.java | 1 + forge-gui/res/cardsfolder/upcoming/slime_against_humanity.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java index ffd098da0c6..47590792cf3 100644 --- a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java +++ b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java @@ -965,6 +965,7 @@ public class AbilityUtils { String defined = incR[0]; if (defined.equals("Self") || defined.equals("TargetedCard") || defined.equals("ThisTargetedCard") + || defined.equals("Convoked") || defined.startsWith("Valid") || getPaidCards(sa, defined) != null || defined.equals("TargetedSource") || defined.startsWith("CardUID_")) { // defined syntax indicates cards only, so don't include any players diff --git a/forge-gui/res/cardsfolder/upcoming/slime_against_humanity.txt b/forge-gui/res/cardsfolder/upcoming/slime_against_humanity.txt index 3429082bdbc..0b5910e6fb5 100644 --- a/forge-gui/res/cardsfolder/upcoming/slime_against_humanity.txt +++ b/forge-gui/res/cardsfolder/upcoming/slime_against_humanity.txt @@ -2,7 +2,8 @@ Name:Slime Against Humanity ManaCost:2 G Types:Sorcery A:SP$ Token | TokenScript$ g_0_0_ooze_trample | RememberTokens$ True | SubAbility$ DBPutCounters | SpellDescription$ Create a 0/0 green Ooze creature token with trample. -SVar:DBPutCounters:DB$ PutCounter | Defined$ Remembered | CounterType$ P1P1 | CounterNum$ Count$ValidGraveyard,Exile Ooze.YouOwn,Card.YouOwn+namedSlime Against Humanity/Plus.2 | StackDescription$ SpellDescription | SpellDescription$ Put X +1/+1 counters on it, where X is two plus the total number of cards you own in exile and in your graveyard that are Oozes or are named Slime Against Humanity. +SVar:DBPutCounters:DB$ PutCounter | Defined$ Remembered | CounterType$ P1P1 | CounterNum$ Count$ValidGraveyard,Exile Ooze.YouOwn,Card.YouOwn+namedSlime Against Humanity/Plus.2 | StackDescription$ SpellDescription | SubAbility$ DBCleanup | SpellDescription$ Put X +1/+1 counters on it, where X is two plus the total number of cards you own in exile and in your graveyard that are Oozes or are named Slime Against Humanity. +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True K:A deck can have any number of cards named CARDNAME. DeckHas:Ability$Token & Type$Ooze DeckHints:Type$Ooze