diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-26 17:47:05 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-26 17:47:05 -0500 |
commit | b5417fafec7dd37cb4be391f3bd3d4541a2a381e (patch) | |
tree | a4e7d08afb2e862186a138e82c8ef4785d82786d /battle/effects/nightmare.asm | |
parent | 2f98c2032fd47ada3484bfc37d590992f286d3d4 (diff) |
Split battle/ into data/ and engine/ components
Diffstat (limited to 'battle/effects/nightmare.asm')
-rw-r--r-- | battle/effects/nightmare.asm | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/battle/effects/nightmare.asm b/battle/effects/nightmare.asm deleted file mode 100644 index 788e3de41..000000000 --- a/battle/effects/nightmare.asm +++ /dev/null @@ -1,38 +0,0 @@ -BattleCommand_Nightmare: ; 37536 -; nightmare - -; Can't hit an absent opponent. - - call CheckHiddenOpponent - jr nz, .failed - -; Can't hit a substitute. - - call CheckSubstituteOpp - jr nz, .failed - -; Only works on a sleeping opponent. - - ld a, BATTLE_VARS_STATUS_OPP - call GetBattleVarAddr - and SLP - jr z, .failed - -; Bail if the opponent is already having a nightmare. - - ld a, BATTLE_VARS_SUBSTATUS1_OPP - call GetBattleVarAddr - bit SUBSTATUS_NIGHTMARE, [hl] - jr nz, .failed - -; Otherwise give the opponent a nightmare. - - set SUBSTATUS_NIGHTMARE, [hl] - call AnimateCurrentMove - ld hl, StartedNightmareText - jp StdBattleTextBox - -.failed - call AnimateFailedMove - jp PrintButItFailed -; 37563 |