Name:Circus of the Sun
ManaCost:no cost
Types:Plane Las Vegas
T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | Execute$ TrigToken | TriggerDescription$ Whenever you planeswalk here or at the beginning of your upkeep, create two 1/1 red performer creature tokens with flying and haste.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Command | Secondary$ True | Execute$ TrigToken | TriggerDescription$ Whenever you planeswalk here or at the beginning of your upkeep, create two 1/1 red performer creature tokens with flying and haste.
SVar:TrigToken:DB$ Token | TokenAmount$ 2 | TokenScript$ r_1_1_performer_flying_haste | TokenOwner$ You
T:Mode$ DamageDoneOnce | CombatDamage$ True | ValidSource$ Creature.withFlying+YouCtrl | ValidTarget$ Player | TriggerZones$ Command | Execute$ TrigChoose | TriggerDescription$ Whenever one or more creatures you control with flying deal combat damage to a player, you may return it to your hand. If you do, draw cards equal to its power.
SVar:TrigChoose:DB$ ChooseCard | DefinedCards$ TriggeredSources | Amount$ NumSources | MinAmount$ 0 | RememberChosen$ True | ChoiceTitle$ Choose creatures to return to your hand | SubAbility$ TrigReturn
SVar:NumSources:TriggerObjectsSources$Amount
# Doesn't follow the strict wording of the Oracle text currently. The return effect currently returns cards who attacked back to their owner's hand instead of your hand.
SVar:TrigReturn:DB$ ChangeZone | Defined$ Remembered | Origin$ Battlefield | Destination$ Hand | RememberLKI$ True | ForgetOtherRemembered$ True | SubAbility$ DBDraw
SVar:DBDraw:DB$ Draw | NumCards$ XPower | ConditionDefined$ RememberedLKI | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanupDraw
SVar:XPower:RememberedLKI$CardPower
SVar:DBCleanupDraw:DB$ Cleanup | ClearRemembered$ True
T:Mode$ ChaosEnsues | TriggerZones$ Command | Execute$ TrigCounter | TriggerDescription$ Whenever Chaos ensues, put a flying counter on up to one target creature. It becomes a Performer in addition to its other types.
SVar:TrigCounter:DB$ PutCounter | ValidTgts$ Creature | TargetMin$ 0 | TargetMax$ 1 | CounterType$ Flying | CounterNum$ 1 | SubAbility$ DBAnimate
SVar:DBAnimate:DB$ Animate | Defined$ Targeted | Types$ Performer | Duration$ Permanent
Oracle:Whenever you planeswalk here or at the beginning of your upkeep, create two 1/1 red performer creature tokens with flying and haste.\nWhenever one or more creatures you control with flying deal combat damage to a player, you may return it to your hand. If you do, draw cards equal to its power.\nWhenever Chaos ensues, put a flying counter on up to one target creature. It becomes a Performer in addition to its other types.
