Adds assist and assurance, fixes
This commit is contained in:
		
							
								
								
									
										7
									
								
								gen_7_scripts/src/moves/acupressure.rs
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										7
									
								
								gen_7_scripts/src/moves/acupressure.rs
									
									
									
									
									
										
										
										Normal file → Executable 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 | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user