mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
M21: Add Chandra's Incinerator
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
12
forge-gui/res/cardsfolder/upcoming/chandras_incinerator.txt
Normal file
12
forge-gui/res/cardsfolder/upcoming/chandras_incinerator.txt
Normal 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.
|
||||||
Reference in New Issue
Block a user