ref: afbf1b3ffcea7ab5cfd03a8205c18e948c549bb7
dir: /engine/battle/move_effects/safeguard.asm/
BattleCommand_Safeguard: ; safeguard ld hl, wPlayerScreens ld de, wPlayerSafeguardCount ldh a, [hBattleTurn] and a jr z, .ok ld hl, wEnemyScreens ld de, wEnemySafeguardCount .ok bit SCREENS_SAFEGUARD, [hl] jr nz, .failed set SCREENS_SAFEGUARD, [hl] ld a, 5 ld [de], a call AnimateCurrentMove ld hl, CoveredByVeilText jp StdBattleTextBox .failed call AnimateFailedMove jp PrintButItFailed