Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # we need to check this since a user can use an ability even if
- # he has already insulted
- if battle.player_turn() != user and \
- ability.battle_state == 'O':
- return HttpResponse('Fail: isn\'t your turn')
- if (ability.battle_state == 'J' and battle.state != 'J') or \
- (ability.battle_state == 'O' and battle.state != 'O'):
- return HttpResponse('Fail: you can\'t use this ability in this state')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement