Skip to content

BrokeAllianceUpdate

python
class BrokeAllianceUpdate(BaseModel):
    type: Literal[GameUpdateType.BrokeAlliance]
    traitorID: PlayerSmallID
    betrayedID: PlayerSmallID
java
public class BrokeAllianceUpdate {
    public int type;
    @NotNull public PlayerSmallID traitorID;
    @NotNull public PlayerSmallID betrayedID;
}

Encapsulates event data for when a player breaks an alliance with another player.

The "parent" type is RelevantGameUpdate, which includes all game update types that are relevant to the bot's decision-making process in the ConquerHack event.

You can check whether your bot should worry about this event by looking at the betrayedID attribute to see if it is your bot. Or you can use the update_is_for_me utility function.

Attributes

AttributeTypeDescription
typeGameUpdateType.BrokeAllianceThe type of game update, which is always BrokeAlliance for this class.
traitorIDPlayerSmallIDThe small ID of the player who broke the alliance (i.e. the "traitor").
betrayedIDPlayerSmallIDThe small ID of the player whose alliance was broken (i.e. the "betrayed").