ref: 79184bc71846127b9a4ac20f50c4a5b646e90f20
dir: /engine/battle/move_effects/magnitude.asm/
BattleCommand_GetMagnitude: ; getmagnitude push bc call BattleRandom ld b, a ld hl, MagnitudePower .loop ld a, [hli] cp b jr nc, .ok inc hl inc hl jr .loop .ok ld d, [hl] push de inc hl ld a, [hl] ld [wDeciramBuffer], a call BattleCommand_MoveDelay ld hl, MagnitudeText call StdBattleTextbox pop de pop bc ret INCLUDE "data/moves/magnitude_power.asm"