YMKM: sleuth_instructor + support (#4863)

This commit is contained in:
Northmoc
2024-03-23 09:45:46 -04:00
committed by GitHub
parent 0400dc14ab
commit fcc199fdb4
2 changed files with 19 additions and 0 deletions

View File

@@ -373,6 +373,10 @@ public abstract class Trigger extends TriggerReplacementBase {
getActivationsThisTurn() >= Integer.parseInt(getParam("ActivationLimit"))) {
return false;
}
if (hasParam("GameActivationLimit") &&
getActivationsThisGame() >= Integer.parseInt(getParam("GameActivationLimit"))) {
return false;
}
return true;
}
@@ -574,6 +578,10 @@ public abstract class Trigger extends TriggerReplacementBase {
return hostCard.getAbilityActivatedThisTurn(this.getOverridingAbility());
}
public int getActivationsThisGame() {
return hostCard.getAbilityActivatedThisGame(this.getOverridingAbility());
}
public void triggerRun() {
if (this.getOverridingAbility() != null) {
hostCard.addAbilityActivated(this.getOverridingAbility());

View 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.