fix crash when shaman exchanges roles with themselves
This commit is contained in:
parent
0e020c3d15
commit
ad8f3a720a
@ -3923,6 +3923,9 @@ def choose_target(actor, nick):
|
|||||||
# returns true if a swap happened
|
# returns true if a swap happened
|
||||||
# check for that to short-circuit the nightrole
|
# check for that to short-circuit the nightrole
|
||||||
def check_exchange(cli, actor, nick):
|
def check_exchange(cli, actor, nick):
|
||||||
|
#some roles can act on themselves, ignore this
|
||||||
|
if actor == nick:
|
||||||
|
return False
|
||||||
if nick in var.EXCHANGED:
|
if nick in var.EXCHANGED:
|
||||||
var.EXCHANGED.remove(nick)
|
var.EXCHANGED.remove(nick)
|
||||||
actor_role = var.get_role(actor)
|
actor_role = var.get_role(actor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user