M21: Add Chandra's Incinerator

This commit is contained in:
swordshine
2020-06-24 16:07:13 +08:00
parent b9064dad3f
commit 2e15415666
2 changed files with 16 additions and 0 deletions

View File

@@ -638,6 +638,10 @@ public class CardFactoryUtil {
return doXMath(oppDmg, m, source); return doXMath(oppDmg, m, source);
} }
if (value.contains("NonCombatDamageDealtThisTurn")) {
return doXMath(player.getAssignedDamage() - player.getAssignedCombatDamage(), m, source);
}
if (value.equals("OpponentsAttackedThisTurn")) { if (value.equals("OpponentsAttackedThisTurn")) {
return doXMath(player.getAttackedOpponentsThisTurn().size(), m, source); return doXMath(player.getAttackedOpponentsThisTurn().size(), m, source);
} }

View File

@@ -0,0 +1,12 @@
Name:Chandra's Incinerator
ManaCost:5 R
Types:Creature Elemental
PT:6/6
S:Mode$ ReduceCost | ValidCard$ Card.Self | Type$ Spell | Amount$ X | References$ X | EffectZone$ All | Description$ CARDNAME costs {X} less to cast, where X is the total amount of noncombat damage dealt to your opponents this turn.
SVar:X:PlayerCountOpponents$NonCombatDamageDealtThisTurn
K:Trample
T:Mode$ DamageDone | ValidSource$ Card.YouCtrl,Emblem.YouCtrl | ValidTarget$ Opponent | CombatDamage$ False | TriggerZones$ Battlefield | Execute$ TrigDmg | TriggerDescription$ Whenever a source you control deals noncombat damage to an opponent, CARDNAME deals that much damage to target creature or planeswalker that player controls.
SVar:TrigDmg:DB$ DealDamage | ValidTgts$ Creature,Planeswalker | TgtPrompt$ Select target creature or planeswalker that player controls | TargetsWithDefinedController$ TriggeredTarget | NumDmg$ Y | References$ Y
SVar:Y:TriggerCount$DamageAmount
SVar:PlayMain1:TRUE
Oracle:This spell costs {X} less to cast, where X is the total amount of noncombat damage dealt to your opponents this turn.\nTrample\nWhenever a source you control deals noncombat damage to an opponent, Chandra's Incinerator deals that much damage to target creature or planeswalker that player controls.