summaryrefslogtreecommitdiff
path: root/Remove-the-25%-failure-chance-for-AI-status-moves.md
diff options
context:
space:
mode:
Diffstat (limited to 'Remove-the-25%-failure-chance-for-AI-status-moves.md')
-rw-r--r--Remove-the-25%-failure-chance-for-AI-status-moves.md30
1 files changed, 15 insertions, 15 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 5be6719..fb228d6 100644
--- a/Remove-the-25%-failure-chance-for-AI-status-moves.md
+++ b/Remove-the-25%-failure-chance-for-AI-status-moves.md
@@ -4,7 +4,7 @@ In `BattleCommand_StatDown`:
```diff
; Sharply lower the stat if applicable.
- ld a, [LoweredStat]
+ ld a, [wLoweredStat]
and $f0
- jr z, .ComputerMiss
+ jr z, .GotAmountToLower
@@ -23,12 +23,12 @@ In `BattleCommand_StatDown`:
- and a
- jr nz, .DidntMiss
-
-- ld a, [InBattleTowerBattle]
+- ld a, [wInBattleTowerBattle]
- and a
- jr nz, .DidntMiss
-
-; Lock-On still always works.
-- ld a, [PlayerSubStatus5]
+- ld a, [wPlayerSubStatus5]
- bit SUBSTATUS_LOCK_ON, a
- jr nz, .DidntMiss
-
@@ -70,12 +70,12 @@ In `BattleCommand_SleepTarget`:
- and a
- jr nz, .dont_fail
-
-- ld a, [InBattleTowerBattle]
+- ld a, [wInBattleTowerBattle]
- and a
- jr nz, .dont_fail
-
- ; Not locked-on by the enemy
-- ld a, [PlayerSubStatus5]
+- ld a, [wPlayerSubStatus5]
- bit SUBSTATUS_LOCK_ON, a
- jr nz, .dont_fail
-
@@ -93,25 +93,25 @@ In `BattleCommand_Poison`:
```diff
- ld a, [hBattleTurn]
- and a
-- jr z, .mimic_random
+- jr z, .dont_sample_failure
-
- ld a, [wLinkMode]
- and a
-- jr nz, .mimic_random
+- jr nz, .dont_sample_failure
-
-- ld a, [InBattleTowerBattle]
+- ld a, [wInBattleTowerBattle]
- and a
-- jr nz, .mimic_random
+- jr nz, .dont_sample_failure
-
-- ld a, [PlayerSubStatus5]
+- ld a, [wPlayerSubStatus5]
- bit SUBSTATUS_LOCK_ON, a
-- jr nz, .mimic_random
+- jr nz, .dont_sample_failure
-
- call BattleRandom
- cp 25 percent + 1 ; 25% chance AI fails
- jr c, .failed
-
--.mimic_random
+-.dont_sample_failure
...
```
@@ -127,16 +127,16 @@ In `BattleCommand_Paralyze`:
- and a
- jr nz, .dont_sample_failure
-
-- ld a, [InBattleTowerBattle]
+- ld a, [wInBattleTowerBattle]
- and a
- jr nz, .dont_sample_failure
-
-- ld a, [PlayerSubStatus5]
+- ld a, [wPlayerSubStatus5]
- bit SUBSTATUS_LOCK_ON, a
- jr nz, .dont_sample_failure
-
- call BattleRandom
-- cp 1 + 25 percent
+- cp 25 percent + 1 ; 25% chance AI fails
- jr c, .failed
-
-.dont_sample_failure