summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Remove-the-25%-failure-chance-for-AI-status-moves.md25
1 files changed, 16 insertions, 9 deletions
diff --git a/Remove-the-25%-failure-chance-for-AI-status-moves.md b/Remove-the-25%-failure-chance-for-AI-status-moves.md
index 3f7025e..e044994 100644
--- a/Remove-the-25%-failure-chance-for-AI-status-moves.md
+++ b/Remove-the-25%-failure-chance-for-AI-status-moves.md
@@ -1,11 +1,15 @@
When the AI uses stat-lowering or status-inflicting moves, like Screech or Sleep Powder, it has an additional 25% chance to fail on top of the usual accuracy and evasion modifiers. This is caused by four different clauses in [engine/battle/effect_commands.asm](../blob/master/engine/battle/effect_commands.asm), all of which will need deleting.
-- `BattleCommand_StatDown`
-- `BattleCommand_SleepTarget`
-- `BattleCommand_Poison`
-- `BattleCommand_Paralyze`
-In `BattleCommand_StatDown`:
+## Contents
+
+1. [`BattleCommand_StatDown`](#1-battlecommand_statdown)
+2. [`BattleCommand_SleepTarget`](#2-battlecommand_sleeptarget)
+3. [`BattleCommand_Poison`](#3-battlecommand_poison)
+4. [`BattleCommand_Paralyze`](#4-battlecommand_paralyze)
+
+
+## 1. `BattleCommand_StatDown`
```diff
; Sharply lower the stat if applicable.
@@ -55,7 +59,8 @@ In `BattleCommand_StatDown`:
...
```
-In `BattleCommand_SleepTarget`:
+
+## 2. `BattleCommand_SleepTarget`
```diff
ld hl, DidntAffect1Text
@@ -93,7 +98,8 @@ In `BattleCommand_SleepTarget`:
- ret
```
-In `BattleCommand_Poison`:
+
+## 3. `BattleCommand_Poison`
```diff
- ld a, [hBattleTurn]
@@ -120,7 +126,8 @@ In `BattleCommand_Poison`:
...
```
-In `BattleCommand_Paralyze`:
+
+## 4. `BattleCommand_Paralyze`
```diff
.no_item_protection
@@ -148,4 +155,4 @@ In `BattleCommand_Paralyze`:
...
```
-Note that there is no `BattleCommand_Burn` or `BattleCommand_Freeze`.
+That's it! Note that there is no `BattleCommand_Burn` or `BattleCommand_Freeze`.