Name:Lux Artillery
ManaCost:4
Types:Artifact
T:Mode$ SpellCast | ValidCard$ Artifact.Creature | ValidActivatingPlayer$ You | Execute$ TrigAnimate | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast an artifact creature spell, it gains sunburst. (It enters with a +1/+1 counter on it for each color of mana spent to cast it.)
SVar:TrigAnimate:DB$ Animate | Keywords$ Sunburst | Defined$ TriggeredCard | Duration$ Permanent
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | CheckSVar$ X | SVarCompare$ GE30 | Execute$ TrigDealDamage | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your end step, if there are thirty or more counters among artifacts and creatures you control, CARDNAME deals 10 damage to each opponent.
SVar:TrigDealDamage:DB$ DealDamage | Defined$ Opponent | NumDmg$ 10
SVar:X:Count$Valid Artifact.YouCtrl,Creature.YouCtrl$CardCounters.ALL
DeckHas:Ability$Counters
DeckHints:Type$Artifact
Oracle:Whenever you cast an artifact creature spell, it gains sunburst. (It enters with a +1/+1 counter on it for each color of mana spent to cast it.)\nAt the beginning of your end step, if there are thirty or more counters among artifacts and creatures you control, Lux Artillery deals 10 damage to each opponent.
