More work on mocking and removing the impls from the interface
This commit is contained in:
@@ -6,7 +6,7 @@ use alloc::boxed::Box;
|
||||
use core::any::Any;
|
||||
use core::sync::atomic::{AtomicU32, Ordering};
|
||||
use pkmn_lib_interface::app_interface::{
|
||||
BattleSide, BattleSideImpl, ExecutingMove, MoveCategory, Pokemon, WithVolatile,
|
||||
BattleSide, ExecutingMove, MoveCategory, Pokemon, WithVolatile,
|
||||
};
|
||||
use pkmn_lib_interface::handling::ScriptCapabilities::OnEndTurn;
|
||||
use pkmn_lib_interface::handling::{Script, ScriptCapabilities};
|
||||
@@ -76,7 +76,7 @@ impl Script for AuroraVeilEffect {
|
||||
if mv.get_hit_data(&target, hit).is_critical() {
|
||||
return;
|
||||
}
|
||||
let side: BattleSideImpl = self.get_owner().unwrap();
|
||||
let side: pkmn_lib_interface::app_interface::BattleSideImpl = self.get_owner().unwrap();
|
||||
if side.has_volatile(ReflectEffect::get_const_name())
|
||||
&& mv.use_move().category() == MoveCategory::Physical
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user