def METHOD_NAME(evt: Event, var: GameState, player: User, old_role: Optional[str]):
    if old_role == "warlock" and evt.data["role"] != "warlock":
        del CURSED[:player:]
        PASSED.discard(player)
    if not evt.data["in_wolfchat"] and evt.data["role"] == "warlock":
        # this means warlock isn't in wolfchat, so only give cursed list
        player.send(messages["players_list"].format(get_wolflist(var, player)))