Skip to content

AttackID

python
AttackID = str
java
public class AttackID {
    @NotNull
    public static AttackID of(@NotNull String value)
    public @NotNull String stringValue()
}

The unique ID of an ongoing attack, represented by a string.

Can be obtained from the attackID field of a SimplifiedAttack object, which is included in the ongoingAttacks field of a SimplifiedPlayer object.

Can be used to cancel the bot's own attacks (retreat) by passing it to the cancel_attack method of the game controller.