Name:Judgment of Alexander
ManaCost:2 W
Types:Instant
A:SP$ Effect | ReplacementEffects$ PreventDamage | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt to you this turn by sources your opponents control. Whenever damage from a creature is prevented this way, each commander creature you control deals damage equal to its power to that creature.
SVar:PreventDamage:Event$ DamageDone | ActiveZones$ Command | ValidTarget$ You | ValidSource$ Card.OppCtrl,Emblem.OppCtrl | ReplaceWith$ DBTrigger | PreventionEffect$ True | ExecuteMode$ PerSource | Description$ Prevent all damage that would be dealt to you this turn by sources your opponents control. Whenever damage from a creature is prevented this way, each commander creature you control deals damage equal to its power to that creature.
SVar:DBTrigger:DB$ ImmediateTrigger | Execute$ TrigDamageCreature | RememberObjects$ ReplacedSource | ConditionCheckSVar$ Y | TriggerDescription$ Whenever damage from a creature is prevented this way, each commander creature you control deals damage equal to its power to that creature.
SVar:TrigDamageCreature:DB$ DealDamage | Defined$ DelayTriggerRemembered | DamageSource$ Valid Card.IsCommander+YouCtrl | NumDmg$ X
SVar:X:Count$Valid Card.IsCommander+YouCtrl$CardPower
SVar:Y:ReplacedSource$Valid Card.Creature
AI:RemoveDeck:NonCommander
Oracle:Prevent all damage that would be dealt to you this turn by sources your opponents control.\nWhenever damage from a creature is prevented this way, each commander creature you control deals damage equal to its power to that creature.
