lhearachel / plat-engine

MIT License
3 stars 2 forks source link

Imposter #63

Open lhearachel opened 1 year ago

lhearachel commented 1 year ago

Documentation

https://bulbapedia.bulbagarden.net/wiki/Imposter_(Ability)

As soon as the user comes into battle, it transforms into its opponent. Broadly, the target's appearance (including form), types, Ability, stats, and moves are copied; the user retains its HP and level. More precise details are at Transform (move) → Effect.

In Double Battles, Triple Battles, and Battle Royals, Imposter will target the opponent in the position directly opposite it. If there is no opponent directly opposite it, it will not transform.

Role Play fails if the target has the Ability Imposter. Entrainment fails if the user has the Ability Imposter. Imposter cannot be copied by Trace, Power of Alchemy, or Receiver.

Relevant Code Points

Function 0x02256414 needs a new branch for Imposter.