-
Notifications
You must be signed in to change notification settings - Fork 33
Abstract spell effects #1
Copy link
Copy link
Open
Description
Currently, the few implemented spells are enumerated in "make_move" and "get_legal_moves". Returning legal moves associated with the spell and handling the spell effect should be handled by the card objects rather than long rows of 'player.casting_spell == "Vengeance": [...]'. Consider passing lambda functions as card creation parameters, cf. [lambda self: self.owner.add_mana({"Green": 1})] in current Land card instantiation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels