shithub: pokecrystal

Download patch

ref: 682ca7e93c635b21b7ac3db709ba6296c53fa080
parent: e1da37e03303b1a6dd6531d8a044339f337731a1
author: mid-kid <[email protected]>
date: Thu Mar 29 06:57:55 EDT 2018

Label bidefailtext

This "unknown" battle command is actually used to give the proper fail
message to bide.

--- a/data/battle/effect_command_pointers.asm
+++ b/data/battle/effect_command_pointers.asm
@@ -168,7 +168,7 @@
 	dw BattleCommand_RageDamage ; 3527b
 	dw BattleCommand_ResetTypeMatchup ; 34833
 	dw BattleCommand_AllStatsUp ; 36500
-	dw BattleCommanda5 ; 35165
+	dw BattleCommand_BideFailText ; 35165
 	dw BattleCommand_RaiseSubNoAnim ; 365af
 	dw BattleCommand_LowerSubNoAnim ; 365c3
 	dw BattleCommanda8 ; 355b5
--- a/data/moves/effects.asm
+++ b/data/moves/effects.asm
@@ -797,7 +797,7 @@
 	resettypematchup
 	checkhit
 	hittarget
-	effect0xa5
+	bidefailtext
 	checkfaint
 	checkdestinybond
 	buildopponentrage
--- a/engine/battle/effect_commands.asm
+++ b/engine/battle/effect_commands.asm
@@ -2437,7 +2437,7 @@
 ; 35165
 
 
-BattleCommanda5: ; 35165
+BattleCommand_BideFailText: ; 35165
 	ld a, [wAttackMissed]
 	and a
 	ret z
--- a/macros/scripts/battle_commands.asm
+++ b/macros/scripts/battle_commands.asm
@@ -169,7 +169,7 @@
 	command ragedamage              ; a2
 	command resettypematchup        ; a3
 	command allstatsup              ; a4
-	command effect0xa5              ; a5
+	command bidefailtext            ; a5
 	command raisesubnoanim          ; a6
 	command lowersubnoanim          ; a7
 	command effect0xa8              ; a8