summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2022-03-13 02:46:04 -0400
committerGitHub <noreply@github.com>2022-03-13 01:46:04 -0500
commit3bb94e49286617c9e8d61af4e9af85df88000d96 (patch)
treefe83d5968b467fc9b60bdca730f19faf44566b35
parentc34add7e08f11219bcdf9d71b6473215f0a4ae98 (diff)
Solve issue with Full Heal text bugfix (#887)
Fixes #818
-rw-r--r--docs/bugs_and_glitches.md36
1 files changed, 9 insertions, 27 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md
index 6f7cc88fa..078a86d9b 100644
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -1349,19 +1349,13 @@ SunnyDayMoves:
- ; res SUBSTATUS_NIGHTMARE, [hl]
+ ld hl, wEnemySubStatus1
+ res SUBSTATUS_NIGHTMARE, [hl]
-- ; Bug: this should reset SUBSTATUS_CONFUSED
-- ; Uncomment the 2 lines below to fix
-- ; ld hl, wEnemySubStatus3
-- ; res SUBSTATUS_CONFUSED, [hl]
-+ ld hl, wEnemySubStatus5
-+ res SUBSTATUS_TOXIC, [hl]
- ret
+ ...
```
### AI use of Full Heal does not cure confusion status
-**Fix:** Edit `EnemyUsedFullRestore`, `EnemyUsedFullHeal`, and `AI_HealStatus` in [engine/battle/ai/items.asm](https://github.com/pret/pokecrystal/blob/master/engine/battle/ai/items.asm):
+**Fix:** Edit `EnemyUsedFullRestore`, and `AI_HealStatus` in [engine/battle/ai/items.asm](https://github.com/pret/pokecrystal/blob/master/engine/battle/ai/items.asm):
```diff
EnemyUsedFullRestore:
@@ -1370,19 +1364,8 @@ SunnyDayMoves:
ld [wCurEnemyItem], a
- ld hl, wEnemySubStatus3
- res SUBSTATUS_CONFUSED, [hl]
- xor a
- ld [wEnemyConfuseCount], a
-```
-
-```diff
- EnemyUsedFullHeal:
- call AIUsedItemSound
- call AI_HealStatus
- ld a, FULL_HEAL
-+ ld [wCurEnemyItem], a
-+ xor a
-+ ld [wEnemyConfuseCount], a
- jp PrintText_UsedItemOn_AND_AIUpdateHUD
+- xor a
+- ld [wEnemyConfuseCount], a
```
```diff
@@ -1394,12 +1377,11 @@ SunnyDayMoves:
xor a
ld [hl], a
ld [wEnemyMonStatus], a
-- ; Bug: this should reset SUBSTATUS_NIGHTMARE
-- ; Uncomment the 2 lines below to fix
-- ; ld hl, wEnemySubStatus1
-- ; res SUBSTATUS_NIGHTMARE, [hl]
-+ ld hl, wEnemySubStatus1
-+ res SUBSTATUS_NIGHTMARE, [hl]
++ ld [wEnemyConfuseCount], a
+ ; Bug: this should reset SUBSTATUS_NIGHTMARE
+ ; Uncomment the 2 lines below to fix
+ ; ld hl, wEnemySubStatus1
+ ; res SUBSTATUS_NIGHTMARE, [hl]
- ; Bug: this should reset SUBSTATUS_CONFUSED
- ; Uncomment the 2 lines below to fix
- ; ld hl, wEnemySubStatus3