Skip to content

Commit

Permalink
Adding cannot_dahai to reach.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuizumi committed Dec 22, 2013
1 parent ef6a155 commit e7b61ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/mjai/game.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ def action_in_view(action, player_id, for_response)
else
return action
end
when :reach
if action.actor == player
return action.merge({
:cannot_dahai =>
with_response_hint ? (player.tehais.uniq() - player.possible_dahais) : nil,
})
else
return action
end
else
return action
end
Expand Down

0 comments on commit e7b61ab

Please sign in to comment.