You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Sync code with wiki
This commit is contained in:
@@ -4431,7 +4431,7 @@ HandleHPHealingItem: ; 3dd2f
|
||||
ld c, a
|
||||
dec de
|
||||
ld a, [de]
|
||||
adc $0
|
||||
adc 0
|
||||
ld [wBuffer6], a
|
||||
ld b, a
|
||||
ld a, [hld]
|
||||
|
@@ -4011,25 +4011,25 @@ BattleCommand_Poison: ; 35f2c
|
||||
|
||||
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, [wInBattleTowerBattle]
|
||||
and a
|
||||
jr nz, .mimic_random
|
||||
jr nz, .dont_sample_failure
|
||||
|
||||
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
|
||||
call CheckSubstituteOpp
|
||||
jr nz, .failed
|
||||
ld a, [wAttackMissed]
|
||||
@@ -6364,7 +6364,7 @@ BattleCommand_Paralyze: ; 36dc7
|
||||
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
|
||||
|
Reference in New Issue
Block a user