# Dynamax: Battle Rules

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

<details>

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

You can use this rule to flag wild Pokemon encountered in this battle as capable of using Dynamax, even though they don't have a trainer with a Dynamax Band. Wild Pokemon will always Dynamax immediately upon being encountered, prior to any commands even being entered. This Dynamax state will be different from the standard Dynamax, as it will last an indefinite number of turns and never expire until the Pokemon is in a weak enough state.\
\
This is entered as `setBattleRule("wildDynamax")`

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

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

</details>
