Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1.             # we need to check this since a user can use an ability even if
  2.             # he has already insulted
  3.             if battle.player_turn() != user and \
  4.                ability.battle_state == 'O':
  5.                 return HttpResponse('Fail: isn\'t your turn')
  6.  
  7.             if (ability.battle_state == 'J' and battle.state != 'J') or \
  8.                (ability.battle_state == 'O' and battle.state != 'O'):
  9.                 return HttpResponse('Fail: you can\'t use this ability in this state')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement