ref: a4bf94e1d770cadb9a52b94142fd7eb517e4b1df
dir: /engine/battle/move_effects/safeguard.asm/
BattleCommand_Safeguard: ; 37939 ; safeguard ld hl, wPlayerScreens ld de, wPlayerSafeguardCount ld 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 ; 37962