shithub: pokecrystal

Download patch

ref: 35821ec58c244be1f5cb670e07873e8a875c10a5
parent: dcb24bc72428a60e37c1dfa7a93dc46bff7bd5ed
author: Rangi <[email protected]>
date: Sat Jul 25 14:36:49 EDT 2020

Correct constants in DoNPCTrade

--- a/engine/events/npc_trade.asm
+++ b/engine/events/npc_trade.asm
@@ -188,10 +188,10 @@
 	ld e, NPCTRADE_DIALOG
 	call GetTradeAttribute
 	ld a, [hl]
-	cp TRADE_DIALOG_COMPLETE
-	ld b, RESET_FLAG
+	cp TRADE_DIALOGSET_GIRL
+	ld b, CAUGHT_BY_UNKNOWN
 	jr c, .incomplete
-	ld b, SET_FLAG
+	ld b, CAUGHT_BY_GIRL
 .incomplete
 	farcall SetGiftPartyMonCaughtData