2015-04-01 14:16:43 +00:00
|
|
|
MistEffect_: ; 33f2b (c:7f2b)
|
2015-08-31 02:38:41 +00:00
|
|
|
ld hl, wPlayerBattleStatus2
|
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-08-31 02:38:41 +00:00
|
|
|
ld hl, wEnemyBattleStatus2
|
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-07-19 18:56:13 +00:00
|
|
|
jpab PrintButItFailedText_
|
2015-04-01 14:16:43 +00:00
|
|
|
|
|
|
|
ShroudedInMistText: ; 33f52 (c:7f52)
|
|
|
|
TX_FAR _ShroudedInMistText
|
|
|
|
db "@"
|