CLeanup, fixes for Assurance

This commit is contained in:
2022-09-10 10:07:26 +02:00
parent 365bdc8aec
commit 4275816fd9
3 changed files with 19 additions and 24 deletions

View File

@@ -98,7 +98,7 @@ impl Script for AssuranceData {
_old_health: u32,
_new_health: u32,
) {
if pokemon.battle_side_index() == self.for_position {
if pokemon.battle_index() == self.for_position {
self.has_hit.store(true, Ordering::Relaxed);
}
}