pokered/engine/battle/moveEffects/mist_effect.asm

20 lines
445 B
NASM
Raw Normal View History

2016-06-12 00:24:04 +00:00
MistEffect_:
2015-08-31 02:38:41 +00:00
ld hl, wPlayerBattleStatus2
ld a, [H_WHOSETURN]
and a
jr z, .mistEffect
2015-08-31 02:38:41 +00:00
ld hl, wEnemyBattleStatus2
.mistEffect
bit ProtectedByMist, [hl] ; is mon protected by mist?
jr nz, .mistAlreadyInUse
set ProtectedByMist, [hl] ; mon is now protected by mist
callab PlayCurrentMoveAnimation
ld hl, ShroudedInMistText
jp PrintText
.mistAlreadyInUse
2015-07-19 18:56:13 +00:00
jpab PrintButItFailedText_
2016-06-12 00:24:04 +00:00
ShroudedInMistText:
TX_FAR _ShroudedInMistText
db "@"