mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
21 lines
305 B
NASM
21 lines
305 B
NASM
|
BattleCommand_ThunderAccuracy: ; 37d94
|
||
|
; thunderaccuracy
|
||
|
|
||
|
ld a, BATTLE_VARS_MOVE_TYPE
|
||
|
call GetBattleVarAddr
|
||
|
inc hl
|
||
|
ld a, [Weather]
|
||
|
cp WEATHER_RAIN
|
||
|
jr z, .rain
|
||
|
cp WEATHER_SUN
|
||
|
ret nz
|
||
|
ld [hl], 50 percent + 1
|
||
|
ret
|
||
|
|
||
|
.rain
|
||
|
; Redundant with CheckHit guranteeing hit
|
||
|
ld [hl], 100 percent
|
||
|
ret
|
||
|
|
||
|
; 37daa
|