2016-06-12 00:24:04 +00:00
|
|
|
MistEffect_:
|
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
|
2017-12-29 23:59:48 +00:00
|
|
|
bit PROTECTED_BY_MIST, [hl] ; is mon protected by mist?
|
2015-04-08 10:15:08 +00:00
|
|
|
jr nz, .mistAlreadyInUse
|
2017-12-29 23:59:48 +00:00
|
|
|
set PROTECTED_BY_MIST, [hl] ; mon is now protected by mist
|
2015-04-01 14:16:43 +00:00
|
|
|
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
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
ShroudedInMistText:
|
2015-04-01 14:16:43 +00:00
|
|
|
TX_FAR _ShroudedInMistText
|
|
|
|
db "@"
|