mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed logic error with DamageAmount parameter of DamageDone triggers.
- Fixed TriggerZones of Pain Magnification.
This commit is contained in:
@@ -2,7 +2,7 @@ Name:Pain Magnification
|
|||||||
ManaCost:1 B R
|
ManaCost:1 B R
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:no text
|
Text:no text
|
||||||
T:Mode$ DamageDone | ValidTarget$ Opponent | DamageAmount$ GE3 | Execute$ TrigDestroy | TriggerDescription$ Whenever an opponent is dealt 3 or more damage by a single source, that player discards a card.
|
T:Mode$ DamageDone | ValidTarget$ Opponent | DamageAmount$ GE3 | Execute$ TrigDestroy | TriggerZones$ Battlefield | TriggerDescription$ Whenever an opponent is dealt 3 or more damage by a single source, that player discards a card.
|
||||||
SVar:TrigDestroy:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 1 | Mode$ TgtChoose
|
SVar:TrigDestroy:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 1 | Mode$ TgtChoose
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/pain_magnification.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/pain_magnification.jpg
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class Trigger_DamageDone extends Trigger {
|
|||||||
int operand = Integer.parseInt(fullParam.substring(2));
|
int operand = Integer.parseInt(fullParam.substring(2));
|
||||||
int actualAmount = (Integer) runParams.get("DamageAmount");
|
int actualAmount = (Integer) runParams.get("DamageAmount");
|
||||||
|
|
||||||
if (AllZoneUtil.compare(actualAmount, operator, operand))
|
if (!AllZoneUtil.compare(actualAmount, operator, operand))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
System.out.print("DamageDone Amount Operator: ");
|
System.out.print("DamageDone Amount Operator: ");
|
||||||
|
|||||||
Reference in New Issue
Block a user