# Terastal: Battle Rules

These are new battle rules added by this plugin related to Terastallization.

<details>

<summary><mark style="background-color:green;">"wildTerastallize"</mark></summary>

You can use this rule to flag wild Pokemon encountered in this battle as capable of using Terastallization, even though they don't have a trainer with a Tera Orb. Wild Pokemon will always Terastallize immediately upon being encountered, prior to any commands even being entered. The <mark style="background-color:green;">"midbattleScript"</mark> Battle Rule is ignored when this rule is enabled, since wild Tera Battles use their own midbattle script to apply damage thresholds on the Tera Pokemon.&#x20;

This is entered as `setBattleRule("wildTerastallize")`

When this rule is enabled, the <mark style="background-color:green;">"disablePokeBalls"</mark> Battle Rule id also enabled. This will persist until the wild Tera Pokemon reaches its damage threshold and its Terastallization state ends. After which, Poke Balls will become useable again.

If the SOS Battles plugin is installed, the <mark style="background-color:green;">"SOSBattle"</mark> and <mark style="background-color:green;">"totemBattle"</mark> rules are ignored and turned turned off for this battle.

</details>

<details>

<summary><mark style="background-color:green;">"noTerastallize"</mark></summary>

You can use this rule to disable the ability to use Terastallization for certain trainers in this battle, even if they meet all the criteria otherwise. You can disable this for the player's side of the field, the opponent's, or for all trainers.\
\
This is entered as `setBattleRule("noTerastallize", Symbol)`, where "Symbol" can be any one of the following:

* <mark style="background-color:yellow;">:Player</mark>\
  All trainers on the player's side will be unable to use Terastallization.
* <mark style="background-color:yellow;">:Opponent</mark>\
  All trainers on the opponent's side will be unable to use Terastallization.
* <mark style="background-color:yellow;">:All</mark>\
  All trainers on both sides in this battle will be unable to use Terastallization.

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lucidious89-tutorials.gitbook.io/deluxe-battle-kit-tutorial/deluxe-battle-kit-for-v21.1/add-on-tutorials/terastallization/terastal-battle-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
