fix guardian angel being able to guard the same person twice in a row sometimes
This commit is contained in:
parent
19809f4d70
commit
7c39906852
@ -3504,7 +3504,7 @@ def guard(cli, nick, rest):
|
|||||||
if matches != 1:
|
if matches != 1:
|
||||||
pm(cli, nick, "\u0002{0}\u0002 is currently not playing.".format(victim))
|
pm(cli, nick, "\u0002{0}\u0002 is currently not playing.".format(victim))
|
||||||
return
|
return
|
||||||
victim = pl[pll.index(target)]
|
victim = pll[pll.index(target)]
|
||||||
if victim == nick:
|
if victim == nick:
|
||||||
if role == "bodyguard" or not var.GUARDIAN_ANGEL_CAN_GUARD_SELF:
|
if role == "bodyguard" or not var.GUARDIAN_ANGEL_CAN_GUARD_SELF:
|
||||||
var.GUARDED[nick] = None
|
var.GUARDED[nick] = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user