From 5503cd2a494833ecd978b112007abd7717513f53 Mon Sep 17 00:00:00 2001 From: vulcandth Date: Sat, 5 Nov 2022 21:11:50 -0500 Subject: [PATCH] Bugfix: Trade Movie shows incorrect Species No. Fixes: #7 --- engine/movie/trade_animation.asm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/engine/movie/trade_animation.asm b/engine/movie/trade_animation.asm index 4a530b53..4abad52e 100644 --- a/engine/movie/trade_animation.asm +++ b/engine/movie/trade_animation.asm @@ -970,9 +970,20 @@ TrademonStats_WaitBGMap: ret TrademonStats_PrintSpeciesNumber: +; input de = address to species number + ld a, [de] + call GetPokemonIndexFromID + ld a, h + ld h, l + ld l, a + push hl + ld hl, sp + 0 + ld d, h + ld e, l hlcoord 10, 0 - lb bc, PRINTNUM_LEADINGZEROS | 1, 3 + lb bc, PRINTNUM_LEADINGZEROS | 2, 3 call PrintNum + pop de ld [hl], " " ret