# Z-Power: Battle Rules

These are new battle rules added by this plugin related to Z-Power.

<details>

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

You can use this rule to flag wild Pokemon encountered in this battle as capable of using Z-Powered moves, even though they don't have a trainer with a Z-Ring. Wild Z-Powered Pokemon will gain an aura boost which grants them +1 to each of their main stats immediately upon being encountered, prior to any commands even being entered. The Z-Powered Pokemon will then be able to use Z-Moves for the duration of this battle. Every two turns after the wild Pokemon used a Z-Move, their aura will regenerate their Z-Power, allowing them to use another Z-Move. This will persist until the Z-Powered Pokemon reaches a damage threshold where its aura fades.

The <mark style="background-color:green;">"midbattleScript"</mark> Battle Rule is ignored when this rule is enabled, since these battles use their own midbattle script to apply damage thresholds on the Z-Powered Pokemon.&#x20;

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

When this rule is enabled, the <mark style="background-color:green;">"disablePokeBalls"</mark> Battle Rule id also enabled. This will persist until the wild Z-Powered Pokemon reaches its damage threshold and its Z-Powered aura fades. 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;">"noZMoves"</mark></summary>

You can use this rule to disable the ability to use Z-Moves 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("noZMoves", 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 Z-Moves.
* <mark style="background-color:yellow;">:Opponent</mark>\
  All trainers on the opponent's side will be unable to use Z-Moves.
* <mark style="background-color:yellow;">:All</mark>\
  All trainers on both sides in this battle will be unable to use Z-Moves.

</details>

<details>

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

You can use this rule to flag wild Pokemon encountered in this battle as capable of using Ultra Burst, even though they don't have a trainer with a Z-Ring. Wild Pokemon will always Ultra Burst immediately upon being encountered, prior to any commands even being entered. If so, the Ultra Pokemon will gain an aura boost, which grants them +1 to each of their main stats. The <mark style="background-color:green;">"midbattleScript"</mark> Battle Rule is ignored when this rule is enabled, since wild Ultra Battles use their own midbattle script to apply damage thresholds on the Ultra Pokemon.&#x20;

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

When this rule is enabled, the <mark style="background-color:green;">"disablePokeBalls"</mark> Battle Rule id also enabled. This will persist until the wild Ultra Pokemon reaches its damage threshold and its Ultra Burst 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;">"noUltraBurst"</mark></summary>

You can use this rule to disable the ability to use Ultra Burst 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("noUltraBurst", 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 Ultra Burst.
* <mark style="background-color:yellow;">:Opponent</mark>\
  All trainers on the opponent's side will be unable to use Ultra Burst.
* <mark style="background-color:yellow;">:All</mark>\
  All trainers on both sides in this battle will be unable to use Ultra Burst.

</details>
