You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Move-unique effect commands consistently go in engine/battle/move_effects/
This commit is contained in:
20
engine/battle/move_effects/thunder.asm
Normal file
20
engine/battle/move_effects/thunder.asm
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user