Balance fix for exchanging dullahan
This commit is contained in:
parent
7d83dc4d8e
commit
30aaa2c802
@ -128,9 +128,17 @@ def on_exchange(evt, var, actor, target, actor_role, target_role):
|
|||||||
|
|
||||||
for k in set(TARGETS):
|
for k in set(TARGETS):
|
||||||
if actor_role == "dullahan" and target_role != "dullahan" and k is actor:
|
if actor_role == "dullahan" and target_role != "dullahan" and k is actor:
|
||||||
TARGETS[target] = TARGETS.pop(k) - {target}
|
targets = TARGETS.pop(k)
|
||||||
elif target_role == "dullahan" and actor_role != "dullahan" and k is target:
|
if target in targets:
|
||||||
TARGETS[actor] = TARGETS.pop(k) - {actor}
|
targets.remove(target)
|
||||||
|
targets.add(actor)
|
||||||
|
TARGETS[target] = targets
|
||||||
|
if target_role == "dullahan" and actor_role != "dullahan" and k is target:
|
||||||
|
targets = TARGETS.pop(k)
|
||||||
|
if actor in targets:
|
||||||
|
targets.remove(actor)
|
||||||
|
targets.add(target)
|
||||||
|
TARGETS[actor] = targets
|
||||||
|
|
||||||
@event_listener("chk_nightdone")
|
@event_listener("chk_nightdone")
|
||||||
def on_chk_nightdone(evt, var):
|
def on_chk_nightdone(evt, var):
|
||||||
|
Loading…
Reference in New Issue
Block a user