Merge pull request #6610 from Northmoc/ydsk3

YDSK: valiant_emberkin.txt + support
This commit is contained in:
Paul Hammerton
2024-11-24 09:53:39 +00:00
committed by GitHub
2 changed files with 19 additions and 1 deletions

View File

@@ -161,7 +161,15 @@ public class StaticAbilityPanharmonicon {
if (!stAb.matchesValidParam("ValidActivator", sa.getActivatingPlayer())) { if (!stAb.matchesValidParam("ValidActivator", sa.getActivatingPlayer())) {
return false; return false;
} }
} else if (trigMode.equals(TriggerType.DamageDone) || trigMode.equals(TriggerType.DamageDoneOnce) } else if (trigMode.equals(TriggerType.BecomesTarget)) {
if (!stAb.matchesValidParam("ValidTarget", runParams.get(AbilityKey.Target))) {
return false;
}
} else if (trigMode.equals(TriggerType.BecomesTargetOnce)) {
if (!stAb.matchesValidParam("ValidTarget", runParams.get(AbilityKey.Targets))) {
return false;
}
} else if (trigMode.equals(TriggerType.DamageDone) || trigMode.equals(TriggerType.DamageDoneOnce)
|| trigMode.equals(TriggerType.DamageAll) || trigMode.equals(TriggerType.DamageDealtOnce)) { || trigMode.equals(TriggerType.DamageAll) || trigMode.equals(TriggerType.DamageDealtOnce)) {
if (stAb.hasParam("CombatDamage") && stAb.getParam("CombatDamage").equalsIgnoreCase("True") != if (stAb.hasParam("CombatDamage") && stAb.getParam("CombatDamage").equalsIgnoreCase("True") !=
(Boolean) runParams.get(AbilityKey.IsCombatDamage)) { (Boolean) runParams.get(AbilityKey.IsCombatDamage)) {

View File

@@ -0,0 +1,10 @@
Name:Valiant Emberkin
ManaCost:1 R W
Types:Enchantment Creature Mouse Glimmer
PT:1/1
K:Haste
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME enters or attacks, target creature you control perpetually gets +1/+0.
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPump | Secondary$ True | TriggerDescription$ Whenever CARDNAME enters or attacks, target creature you control perpetually gets +1/+0.
SVar:TrigPump:DB$ Pump | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | NumAtt$ 1 | Duration$ Perpetual
S:Mode$ Panharmonicon | ValidMode$ BecomesTarget,BecomesTargetOnce | ValidCard$ Permanent.YouCtrl | ValidTarget$ Creature.YouCtrl | Description$ If a creature you control becoming the target of a spell or ability causes a triggered ability of a permanent you control to trigger, that ability triggers an additional time.
Oracle:Haste\Whenever Valiant Emberkin enters or attacks, target creature you control perpetually gets +1/+0.\nIf a creature you control becoming the target of a spell or ability causes a triggered ability of a permanent you control to trigger, that ability triggers an additional time.