More work on WASM handling.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-08-20 12:22:12 +02:00
parent 703fd2c147
commit 2d4253e155
36 changed files with 922 additions and 87 deletions

View File

@@ -91,6 +91,15 @@ pub enum Event<'own, 'battle, 'library> {
/// The health of the Pokemon after the damage.
new_health: u32,
},
/// This event happens when a Pokemon gets healed
Heal {
/// The Pokemon that gets healed.
pokemon: &'own Pokemon<'battle, 'library>,
/// The health of the Pokemon before the heal.
original_health: u32,
/// The health of the Pokemon after the heal.
new_health: u32,
},
/// This event happens when a Pokemon faints.
Faint {
/// The pokemon that has fainted.