mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
*Renamed parameters for DamageDone trigger mode to be more uniform with other trigger modes. (Fixes Dune-Brood Nephilim and Fungal Shambler)
*Fixed Discarded trigger mode's ValidCause parameter.
This commit is contained in:
@@ -5,7 +5,7 @@ Text:no text
|
||||
PT:2/2
|
||||
K:Flying
|
||||
K:Haste
|
||||
T:Mode$ DamageDone | SourceValid$ Card.Self | TargetValid$ Opponent | Execute$ TrigDiscard | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, that player discards a card.
|
||||
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Execute$ TrigDiscard | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, that player discards a card.
|
||||
SVar:TrigDiscard:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 1 | Mode$ TgtChoose
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/blazing_specter.jpg
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:1 U
|
||||
Types:creature Bird
|
||||
Text:no text
|
||||
PT:1/2
|
||||
T:Mode$ DamageDone | SourceValid$ Card.Self | TargetValid$ Opponent | CombatDamage$ True | Metalcraft$ True | Execute$ TrigMill | TriggerZones$ Battlefield | TriggerDescription$ Metalcraft <20> Whenever CARDNAME deals combat damage to a player, if you control three or more artifacts, that player puts the top four cards of his or her library into his or her graveyard.
|
||||
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | Metalcraft$ True | Execute$ TrigMill | TriggerZones$ Battlefield | TriggerDescription$ Metalcraft <20> Whenever CARDNAME deals combat damage to a player, if you control three or more artifacts, that player puts the top four cards of his or her library into his or her graveyard.
|
||||
SVar:TrigMill:AB$Mill | Cost$ 0 | Defined$ Opponent | NumCards$ 4
|
||||
SVar:Rarity:Common
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/screeching_silcaw.jpg
|
||||
|
||||
@@ -14,17 +14,17 @@ public class Trigger_DamageDone extends Trigger {
|
||||
Card src = (Card)runParams.get("DamageSource");
|
||||
Object tgt = runParams.get("DamageTarget");
|
||||
|
||||
if(mapParams.containsKey("SourceValid"))
|
||||
if(mapParams.containsKey("ValidSource"))
|
||||
{
|
||||
if(!src.isValidCard(mapParams.get("SourceValid").split(" "), hostCard.getController(), hostCard))
|
||||
if(!src.isValidCard(mapParams.get("ValidSource").split(" "), hostCard.getController(), hostCard))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(mapParams.containsKey("TargetValid"))
|
||||
if(mapParams.containsKey("ValidTarget"))
|
||||
{
|
||||
if(!matchesValid(tgt,mapParams.get("TargetValid").split(","),hostCard))
|
||||
if(!matchesValid(tgt,mapParams.get("ValidTarget").split(","),hostCard))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ public class Trigger_Discarded extends Trigger {
|
||||
|
||||
if(mapParams.containsKey("ValidCause"))
|
||||
{
|
||||
if(!matchesValid(runParams.get("Cause"),mapParams.get("ValidSource").split(","),hostCard))
|
||||
if(!matchesValid(runParams.get("Cause"),mapParams.get("ValidCause").split(","),hostCard))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user