mirror of
https://github.com/wr34k/IRCUFC.git
synced 2024-11-22 15:36:40 +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))
|
# 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
|
tmp = attacker
|
||||||
attacker = defender
|
attacker = defender
|
||||||
defender = tmp
|
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
|
attacker.advantage = True
|
||||||
defender.advantage = False
|
defender.advantage = False
|
||||||
|
Loading…
Reference in New Issue
Block a user