mirror of
https://github.com/wr34k/IRCUFC.git
synced 2024-11-21 15:06:38 +00:00
Less shitty cond
This commit is contained in:
parent
4decd3787d
commit
0d5686509d
@ -190,13 +190,14 @@ class Fight(object):
|
||||
|
||||
# self.IRC.log.info("{} rolled {} and {} rolled {}".format(self.fighters[0].nick, roll1, self.fighters[1].nick, roll2))
|
||||
|
||||
if attacker.nextAction[0] == 'block' and defender.nextAction[0] != 'block':
|
||||
if attacker.nextAction[0] == 'block' and defender.nextAction[0] == 'block':
|
||||
self.shout("Both fighters are trying to block at the same time, resulting in a completely retarded action...")
|
||||
return
|
||||
|
||||
elif attacker.nextAction[0] == 'block':
|
||||
tmp = attacker
|
||||
attacker = defender
|
||||
defender = tmp
|
||||
elif attacker.nextAction[0] == 'block' and defender.nextAction[0] == 'block':
|
||||
self.shout("Both fighters are trying to block at the same time, resulting in a completely retarded action...")
|
||||
return
|
||||
|
||||
attacker.advantage = True
|
||||
defender.advantage = False
|
||||
|
Loading…
Reference in New Issue
Block a user