diff options
| author | yenatch <yenatch@gmail.com> | 2015-04-01 12:56:42 -0400 |
|---|---|---|
| committer | yenatch <yenatch@gmail.com> | 2015-04-01 12:56:42 -0400 |
| commit | c2efe700ac1c5cca88bac710b98388a99665741e (patch) | |
| tree | b30d2f676d5ad0d78b959c8ffcf0f8dcfca13943 /engine/battle/moveEffects/mist_effect.asm | |
| parent | Merge pull request #88 from YamaArashi/master (diff) | |
| parent | Further split bank e stuff (diff) | |
| download | pokeyellow-c2efe700ac1c5cca88bac710b98388a99665741e.tar.gz pokeyellow-c2efe700ac1c5cca88bac710b98388a99665741e.tar.xz pokeyellow-c2efe700ac1c5cca88bac710b98388a99665741e.zip | |
Merge pull request #90 from xCrystal/master
Rename/split battle and move effect files. Battle functions, AI, and attack animations
Diffstat (limited to 'engine/battle/moveEffects/mist_effect.asm')
| -rw-r--r-- | engine/battle/moveEffects/mist_effect.asm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engine/battle/moveEffects/mist_effect.asm b/engine/battle/moveEffects/mist_effect.asm new file mode 100644 index 00000000..adee1dfd --- /dev/null +++ b/engine/battle/moveEffects/mist_effect.asm @@ -0,0 +1,21 @@ +MistEffect_: ; 33f2b (c:7f2b) + ld hl, W_PLAYERBATTSTATUS2 + ld a, [$fff3] + and a + jr z, .asm_33f36 + ld hl, W_ENEMYBATTSTATUS2 +.asm_33f36 + bit ProtectedByMist, [hl] ; is mon protected by mist? + jr nz, .asm_33f4a + set ProtectedByMist, [hl] ; mon is now protected by mist + callab PlayCurrentMoveAnimation + ld hl, ShroudedInMistText + jp PrintText +.asm_33f4a + ld hl, PrintButItFailedText_ + ld b, BANK(PrintButItFailedText_) + jp Bankswitch + +ShroudedInMistText: ; 33f52 (c:7f52) + TX_FAR _ShroudedInMistText + db "@" |
