summaryrefslogtreecommitdiff
path: root/src/battle_anim_throw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/battle_anim_throw.c')
-rwxr-xr-xsrc/battle_anim_throw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_anim_throw.c b/src/battle_anim_throw.c
index 0a81a6eca..bf95a319c 100755
--- a/src/battle_anim_throw.c
+++ b/src/battle_anim_throw.c
@@ -2227,7 +2227,7 @@ void TryShinyAnimation(u8 battler, struct Pokemon *mon)
if (IsBattlerSpriteVisible(battler))
{
- shinyValue = HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality);
+ shinyValue = GET_SHINY_VALUE(otId, personality);
if (shinyValue < SHINY_ODDS)
isShiny = TRUE;