Adds assist and assurance, fixes

This commit is contained in:
2022-09-09 20:09:56 +02:00
parent 05430c5e84
commit 365bdc8aec
57 changed files with 533 additions and 95 deletions

7
gen_7_scripts/src/moves/acupressure.rs Normal file → Executable file
View File

@@ -1,3 +1,4 @@
use core::any::Any;
use core::mem::transmute;
use pkmn_lib_interface::app_interface::{ExecutingMove, Pokemon, Statistic};
use pkmn_lib_interface::handling::{Script, ScriptCapabilities};
@@ -15,7 +16,7 @@ impl Script for Acupressure {
Self {}
}
fn get_name() -> &'static str {
fn get_name(&self) -> &'static str {
Self::get_const_name()
}
@@ -32,4 +33,8 @@ impl Script for Acupressure {
unsafe { transmute(target.battle().unwrap().random().get_between(1, 6) as u8) };
target.change_stat_boost(rand_stat, 2, false);
}
fn as_any(&self) -> &dyn Any {
self
}
}