2015-04-01 14:16:43 +00:00
|
|
|
MistEffect_: ; 33f2b (c:7f2b)
|
|
|
|
ld hl, W_PLAYERBATTSTATUS2
|
2015-04-08 10:15:08 +00:00
|
|
|
ld a, [H_WHOSETURN]
|
2015-04-01 14:16:43 +00:00
|
|
|
and a
|
2015-04-08 10:15:08 +00:00
|
|
|
jr z, .mistEffect
|
2015-04-01 14:16:43 +00:00
|
|
|
ld hl, W_ENEMYBATTSTATUS2
|
2015-04-08 10:15:08 +00:00
|
|
|
.mistEffect
|
2015-04-01 14:16:43 +00:00
|
|
|
bit ProtectedByMist, [hl] ; is mon protected by mist?
|
2015-04-08 10:15:08 +00:00
|
|
|
jr nz, .mistAlreadyInUse
|
2015-04-01 14:16:43 +00:00
|
|
|
set ProtectedByMist, [hl] ; mon is now protected by mist
|
|
|
|
callab PlayCurrentMoveAnimation
|
|
|
|
ld hl, ShroudedInMistText
|
|
|
|
jp PrintText
|
2015-04-08 10:15:08 +00:00
|
|
|
.mistAlreadyInUse
|
2015-04-01 14:16:43 +00:00
|
|
|
ld hl, PrintButItFailedText_
|
|
|
|
ld b, BANK(PrintButItFailedText_)
|
|
|
|
jp Bankswitch
|
|
|
|
|
|
|
|
ShroudedInMistText: ; 33f52 (c:7f52)
|
|
|
|
TX_FAR _ShroudedInMistText
|
|
|
|
db "@"
|