# 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>
