Skip to content

Commit

Permalink
fix to bug where Eji's Cunning would crash if used on a spell with no…
Browse files Browse the repository at this point in the history
… targets
  • Loading branch information
davewx7 committed Dec 9, 2017
1 parent 7db9548 commit 8c6567f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/cards-minerva.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@
rules: "Change the targets of a spell that is being cast.",
possible_targets: "def(class game_state game, class creature avatar, [Loc] targets) ->[Loc]|null
if(size(game_stack) = 0 or not (back(game_stack) is class message.play_card)
or (class message.play_card<- back(game_stack)).targets = []
or (card_being_played = null or card_being_played.type != 'spell'
where card_being_played = (class message.play_card <- back(game_stack)).card),
[],
Expand Down

0 comments on commit 8c6567f

Please sign in to comment.