This commit is contained in:
2 files changed
+16
-15
No files matched your search
@@ -3,7 +3,7 @@ use alloc::boxed::Box;
|
||||
use core::any::Any;
|
||||
use core::sync::atomic::{AtomicBool, Ordering};
|
||||
use pkmn_lib_interface::app_interface::{
|
||||
BattleSide, DamageSource, ExecutingMove, Pokemon, TurnChoice,
|
||||
get_volatile_as, BattleSide, DamageSource, ExecutingMove, Pokemon, TurnChoice,
|
||||
};
|
||||
use pkmn_lib_interface::handling::{Script, ScriptCapabilities};
|
||||
|
||||
@@ -48,7 +48,7 @@ impl Script for Assurance {
|
||||
_hit: u8,
|
||||
base_power: &mut u8,
|
||||
) {
|
||||
if let Some(s) = pkmn_lib_interface::app_interface::get_volatile_as::<AssuranceData>(
|
||||
if let Some(s) = get_volatile_as::<AssuranceData>(
|
||||
target.battle_side().as_ref(),
|
||||
AssuranceData::get_const_name(),
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user