mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
YMKM: sleuth_instructor + support (#4863)
This commit is contained in:
@@ -373,6 +373,10 @@ public abstract class Trigger extends TriggerReplacementBase {
|
|||||||
getActivationsThisTurn() >= Integer.parseInt(getParam("ActivationLimit"))) {
|
getActivationsThisTurn() >= Integer.parseInt(getParam("ActivationLimit"))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (hasParam("GameActivationLimit") &&
|
||||||
|
getActivationsThisGame() >= Integer.parseInt(getParam("GameActivationLimit"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -574,6 +578,10 @@ public abstract class Trigger extends TriggerReplacementBase {
|
|||||||
return hostCard.getAbilityActivatedThisTurn(this.getOverridingAbility());
|
return hostCard.getAbilityActivatedThisTurn(this.getOverridingAbility());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getActivationsThisGame() {
|
||||||
|
return hostCard.getAbilityActivatedThisGame(this.getOverridingAbility());
|
||||||
|
}
|
||||||
|
|
||||||
public void triggerRun() {
|
public void triggerRun() {
|
||||||
if (this.getOverridingAbility() != null) {
|
if (this.getOverridingAbility() != null) {
|
||||||
hostCard.addAbilityActivated(this.getOverridingAbility());
|
hostCard.addAbilityActivated(this.getOverridingAbility());
|
||||||
|
|||||||
11
forge-gui/res/cardsfolder/upcoming/sleuth_instructor.txt
Normal file
11
forge-gui/res/cardsfolder/upcoming/sleuth_instructor.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Name:Sleuth Instructor
|
||||||
|
ManaCost:1 W
|
||||||
|
Types:Creature Elephant Detective
|
||||||
|
PT:3/2
|
||||||
|
K:Disguise:1 W
|
||||||
|
T:Mode$ TurnFaceUp | ValidCard$ Card.Self,Creature.Other+YouCtrl | Execute$ TrigSeek | TriggerZones$ Battlefield | GameActivationLimit$ 1 | TriggerDescription$ Whenever CARDNAME or another creature you control is turned face up, seek a non-Elephant creature card with mana value 3 or less and cloak it. This ability triggers only once.
|
||||||
|
SVar:TrigSeek:DB$ Seek | Type$ Creature.nonElephant+cmcLE3 | RememberFound$ True | SubAbility$ DBCloak
|
||||||
|
SVar:DBCloak:DB$ Cloak | Defined$ Remembered | SubAbility$ DBCleanup
|
||||||
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||||
|
DeckHints:Keyword$Morph|Megamorph|Disguise
|
||||||
|
Oracle:Disguise {1}{W}\nWhenever Sleuth Instructor or another permanent you control is turned face up, seek a non-Elephant creature card with mana value 3 or less and cloak it. This ability triggers only once.
|
||||||
Reference in New Issue
Block a user