-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup_cards.log
160 lines (92 loc) · 13.2 KB
/
setup_cards.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
add_activated_ability("Plains", 'T', 'self.controller.mana.add(mana.Mana.WHITE, 1)', [])
add_activated_ability("Island", 'T', 'self.controller.mana.add(mana.Mana.BLUE, 1)', [])
add_activated_ability("Swamp", 'T', 'self.controller.mana.add(mana.Mana.BLACK, 1)', [])
add_activated_ability("Mountain", 'T', 'self.controller.mana.add(mana.Mana.RED, 1)', [])
add_activated_ability("Forest", 'T', 'self.controller.mana.add(mana.Mana.GREEN, 1)', [])
add_targets("Lightning Bolt", ['creature or player'], prompts=[])
add_play_func_with_targets("Lightning Bolt", lambda self, targets, is_legal_target: [targets[0].take_damage(self, 3)])
add_targets("Lightning Strike", ['creature or player'], prompts=[])
add_play_func_with_targets("Lightning Strike", lambda self, targets, is_legal_target: [targets[0].take_damage(self, 3)])
add_targets("Congregate", ['player'], prompts=[])
add_play_func_with_targets("Congregate", lambda self, targets, is_legal_target: [targets[0].gain_life(2 * len([p for plyr in self.controller.game.players_list for p in plyr.battlefield if p.is_creature]))])
add_play_func_no_target("Mass Calcify", lambda self: [self.game.apply_to_battlefield( lambda p: p.destroy(), lambda p: p.is_creature and not p.has_color('W'))])
add_trigger("Ajani's Pridemate", triggers.triggerConditions['onControllerLifeGain'], '[self.card.add_counter("+1/+1") if self.controller.make_choice( "Would you like to put a +1/+1 counter on %r?" % self.card) else None]', None, [], intervening_if=None)
add_trigger("Tireless Missionaries", triggers.triggerConditions['onEtB'], '[self.controller.gain_life(3)]', None, [], intervening_if=None)
add_activated_ability("Soulmender", 'T', 'self.controller.gain_life(1)', [])
add_targets("Solemn Offerings", [lambda self, p: p.is_permanent and (p.is_artifact or p.is_enchantment)], prompts=[])
add_play_func_with_targets("Solemn Offerings", lambda self, targets, is_legal_target: [targets[0].destroy(), self.controller.gain_life(4)])
add_play_func_no_target("Divination", lambda self: [self.controller.draw(2)])
add_play_func_no_target("Jace's Ingenuity", lambda self: [self.controller.draw(3)])
add_targets("Titanic Growth", ['creature'], prompts=[])
add_play_func_with_targets("Titanic Growth", lambda self, targets, is_legal_target: [targets[0].add_effect('modifyPT', (4, 4), self, self.game.eot_time)])
add_targets("Ulcerate", ['creature'], prompts=[])
add_play_func_with_targets("Ulcerate", lambda self, targets, is_legal_target: [targets[0].add_effect('modifyPT', (-3, -3), self, self.game.eot_time), self.controller.lose_life(3)])
add_activated_ability("Zof Shade", '2B', "self.card.add_effect('modifyPT', (2, 2), self, self.game.eot_time)", [])
add_targets("Mind Rot", ['player'], prompts=[])
add_play_func_with_targets("Mind Rot", lambda self, targets, is_legal_target: [targets[0].discard(2)])
add_activated_ability("Shadowcloak Vampire", 'Pay 2 life', "self.card.add_effect('gainAbility', 'Flying', self, self.game.eot_time)", [])
add_trigger("First Response", triggers.triggerConditions['onUpkeep'], "[self.controller.create_token('1/1 white Soldier')]", None, [], intervening_if=lambda self: self.controller.last_turn_events['life loss'])
add_play_func_no_target("Raise the Alarm", lambda self: [self.controller.create_token('1/1 white Soldier', 2)])
add_trigger("Resolute Archangel", triggers.triggerConditions['onEtB'], '[self.controller.set_life_total(self.controller.startingLife)]', None, [], intervening_if=lambda self: self.controller.life < self.controller.startingLife)
add_play_func_no_target("Sanctified Charge", lambda self: [[c.add_effect('modifyPT', (2, 1), self, self.game.eot_time) for c in self.controller.battlefield if c.is_creature], [c.add_effect('gainAbility', 'First Strike', self, self.game.eot_time) for c in self.controller.battlefield if c.is_creature and c.has_color('W')]])
add_play_func_no_target("Aetherspouts", lambda self: [self.game.apply_to_battlefield( lambda p: p.change_zone(p.owner.library, 0, False) if p.owner.make_choice( "Would you like to put %r on top of your library?" " (otherwise it goes on bottom)" % p) else p.change_zone(p.owner.library, -1, False), lambda p: p.status.is_attacking)])
add_targets("Devouring Light", [lambda self, p: p.is_permanent and (p.is_creature and p.in_combat)], prompts=[])
add_play_func_with_targets("Devouring Light", lambda self, targets, is_legal_target: [targets[0].exile()])
add_play_func_no_target("Triplicate Spirits", lambda self: [self.controller.create_token('1/1 white Spirit', 3, 'Flying')])
add_play_func_no_target("Meditation Puzzle", lambda self: [self.controller.gain_life(8)])
add_targets("Pillar of Light", [lambda self, p: p.is_permanent and (p.is_creature and p.toughness >= 4)], prompts=[])
add_play_func_with_targets("Pillar of Light", lambda self, targets, is_legal_target: [targets[0].exile()])
add_targets("Chronostutter", ['creature'], prompts=[])
add_play_func_with_targets("Chronostutter", lambda self, targets, is_legal_target: [targets[0].change_zone(t[0].owner.library, 1, False)])
add_trigger("Coral Barrier", triggers.triggerConditions['onEtB'], "[self.controller.create_token('1/1 blue Squid', 1, 'Islandwalk')]", None, [], intervening_if=None)
add_targets("Hydrosurge", ['creature'], prompts=[])
add_play_func_with_targets("Hydrosurge", lambda self, targets, is_legal_target: [targets[0].add_effect('modifyPT', (-5, 0), self, self.game.eot_time)])
add_targets("Mind Sculpt", ['opponent'], prompts=[])
add_play_func_with_targets("Mind Sculpt", lambda self, targets, is_legal_target: [targets[0].mill(7)])
add_targets("Peel from Reality", [lambda self, p: p.is_permanent and p.is_creature and p.controller is self.controller, lambda self, p: p.is_permanent and p.is_creature and p.controller is not self.controller], prompts=['Choose target creature you control\n', "Choose target creature you don't control\n"])
add_play_func_with_targets("Peel from Reality", lambda self, targets, is_legal_target: [[targets[i].bounce() for i in range(2) if is_legal_target[i]]])
add_activated_ability("Grindclock", 'T', 'self.card.add_counter("Charge")', [])
add_activated_ability("Grindclock", 'T', "self.targets_chosen[0].mill(self.card.num_counters('Charge'))", ['player'])
add_aura_effect("Battle Mastery", '[self.add_ability("Double Strike")]', ['creature'])
add_aura_effect("Marked by Honor", '[self.add_PT((2, 2)), self.add_ability("Vigilance")]', ['creature'])
add_activated_ability("Dauntless River Marshal", '3U', 'self.targets_chosen[0].tap()', ['creature'])
add_trigger("Divine Favor", triggers.triggerConditions['onEtB'], '[self.controller.gain_life(3)]', None, [], intervening_if=None)
add_aura_effect("Divine Favor", '[self.add_PT((1, 3))]', ['creature'])
add_trigger("Kinsbaile Skirmisher", triggers.triggerConditions['onEtB'], '[self.targets_chosen[0].add_effect("modifyPT", (1, 1), self, self.game.eot_time)]', None, ['creature'], intervening_if=None)
add_targets("Ephemeral Shields", ['creature'], prompts=[])
add_play_func_with_targets("Ephemeral Shields", lambda self, targets, is_legal_target: [self.targets_chosen[0].add_effect('gainAbility', 'Indestructible', self, self.game.eot_time)])
add_trigger("Heliod's Pilgrim", triggers.triggerConditions['onEtB'], '[self.controller.search_lib(lambda c: c.is_aura) if self.controller.make_choice( "Would you like to search your library for an aura?") else None]', None, [], intervening_if=None)
add_activated_ability("Selfless Cathar", '1W, Sacrifice ~', "(lambda self=self: [c.add_effect('modifyPT', (1, 1), self, self.game.eot_time) for c in self.controller.battlefield if c.is_creature])()", [])
add_trigger("Wall of Essence", triggers.triggerConditions['onTakeCombatDamage'], '[self.controller.gain_life(self.trigger_amount)]', None, [], intervening_if=None)
add_static_effect("Dauntless River Marshal", 'self', 'modifyPT', (1,1), lambda eff: eff.source.controller.controls(subtype="Island"))
add_static_effect("Warden of the Beyond", 'self', 'modifyPT', (2,2), lambda eff: len(eff.source.controller.opponent.exile) > 0)
add_static_effect("Aeronaut Tinkerer", 'self', 'gainAbility', 'Flying', lambda eff: eff.source.controller.controls(types="Artifact"))
add_trigger("Chasm Skulker", triggers.triggerConditions['onControllerDrawCard'], '[self.card.add_counter("+1/+1")]', None, [], intervening_if=None)
add_trigger("Chasm Skulker", triggers.triggerConditions['onDeath'], '[self.controller.create_token("1/1 blue Squid", self.card.num_counters("+1/+1"), "Islandwalk")]', None, [], intervening_if=None)
add_trigger("Frost Lynx", triggers.triggerConditions['onEtB'], '[self.targets_chosen[0].tap(), self.targets_chosen[0].freeze()]', None, ['opponent creature'], intervening_if=None)
add_activated_ability("Paragon of New Dawns", 'W, T', 'self.targets_chosen[0].add_effect("gainAbility", "Vigilance", self, self.game.eot_time)', [lambda self, p: p.is_permanent and p.is_creature and p.controller == self.controller and p != self and p.has_color("W")])
add_static_effect("Paragon of New Dawns", 'controller -self', 'modifyPT', (1, 1), lambda eff: eff.apply_target.is_creature and eff.apply_target.has_color("W"))
add_activated_ability("Paragon of Gathering Mists", 'U, T', 'self.targets_chosen[0].add_effect("gainAbility", "Flying", self, self.game.eot_time)', [lambda self, p: p.is_permanent and p.is_creature and p.controller == self.controller and p != self and p.has_color("U")])
add_static_effect("Paragon of Gathering Mists", 'controller -self', 'modifyPT', (1, 1), lambda eff: eff.apply_target.is_creature and eff.apply_target.has_color("U"))
add_targets("Void Snare", [lambda self, p: p.is_permanent and not p.is_land], prompts=[])
add_play_func_with_targets("Void Snare", lambda self, targets, is_legal_target: [p.bounce()])
add_trigger("Black Cat", triggers.triggerConditions['onDeath'], '[self.targets_chosen[0].discard(random=True)]', None, ['opponent'], intervening_if=None)
add_targets("Negate", ['instant or sorcery spell'], prompts=[])
add_play_func_with_targets("Negate", lambda self, targets, is_legal_target: [targets[0].counter(source=self)])
add_trigger("Forge Devil", triggers.triggerConditions['onEtB'], '[self.targets_chosen[0].take_damage(self, 1), self.controller.take_damage(self, 1)]', None, ['creature'], intervening_if=None)
add_targets("Cancel", ['spell'], prompts=[])
add_play_func_with_targets("Cancel", lambda self, targets, is_legal_target: [targets[0].counter(source=self)])
add_activated_ability("Furnace Whelp", 'R', "self.card.add_effect('modifyPT', (1, 0), self, self.game.eot_time)", [])
add_trigger("Champion of the Parish", triggers.triggerConditions['onControllerCreatureEtB'], '[self.card.add_counter("+1/+1")]', lambda self: self.trigger_source.has_subtype("Human") and self.trigger_source != self.card, [], intervening_if=None)
add_trigger("Thraben Inspector", triggers.triggerConditions['onEtB'], '[self.controller.investigate()]', None, [], intervening_if=None)
add_trigger("Anafenza, Kin-Tree Spirit", triggers.triggerConditions['onControllerCreatureEtB'], '[self.controller.bolster()]', lambda self: not self.trigger_source.is_token and self.trigger_source != self.card, [], intervening_if=None)
add_activated_ability("Selfless Spirit", 'Sacrifice ~', '(lambda self=self: [c.add_effect("gainAbility", "Indestructible", self, self.game.eot_time) for c in self.controller.battlefield if c.is_creature])()', [])
add_trigger("Squadron Hawk", triggers.triggerConditions['onEtB'], "[self.controller.search_lib(lambda c: c.name == 'Squadron Hawk', num=-1)]", None, [], intervening_if=None)
add_trigger("Wall of Omens", triggers.triggerConditions['onEtB'], '[self.controller.draw()]', None, [], intervening_if=None)
add_trigger("Blade Splicer", triggers.triggerConditions['onEtB'], '[self.controller.create_token("3/3 colorless Golem artifact")]', None, [], intervening_if=None)
add_static_effect("Blade Splicer", 'controller', "gainAbility", "First Strike", lambda eff: eff.apply_target.is_creature and eff.apply_target.has_subtype("Golem"))
add_trigger("Mentor of the Meek", triggers.triggerConditions['onControllerCreatureEtB'], '[self.controller.draw() if self.player.pay(self.controller.make_choice("Would you like to pay 1 to draw a card? If yes, enter mana symbol")) else None]', lambda self: self.trigger_source.power <= 2 and self.trigger_source != self.card, [], intervening_if=None)
add_trigger("Felidar Guardian", triggers.triggerConditions['onEtB'], '[self.targets_chosen[0].flicker() if self.controller.make_choice("Would you like to flicker another permanent?") else None]', None, [lambda self, p: p.is_permanent and p.controller == self.controller and p != self.card], intervening_if=None)
add_trigger("Restoration Angel", triggers.triggerConditions['onEtB'], '[self.targets_chosen[0].flicker() if self.controller.make_choice("Would you like to flicker a non-Angel creature?") else None]', None, [lambda self, p: p.is_creature and p.controller == self.controller and not p.has_subtype("Angel")], intervening_if=None)
add_targets("Path to Exile", ['creature'], prompts=[])
add_play_func_with_targets("Path to Exile", lambda self, targets, is_legal_target: [targets[0].exile(), targets[0].controller.search_lib(lambda c: c.is_basic_land, target_zone=None, todo_func=lambda c: c.change_zone(targets[0].controller.battlefield, status_mod=['tapped'])) if targets[0].controller.make_choice("Would you like to search for a basic land?") else None])