You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Rename SLP to SLP_MASK (#918)
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
This commit is contained in:
@@ -319,7 +319,7 @@ AI_Items:
|
||||
jp c, .Use
|
||||
.FailToxicCheck:
|
||||
ld a, [wEnemyMonStatus]
|
||||
and 1 << FRZ | SLP
|
||||
and 1 << FRZ | SLP_MASK
|
||||
jp z, .DontUse
|
||||
jp .Use
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ AI_Redundant:
|
||||
.Snore:
|
||||
.SleepTalk:
|
||||
ld a, [wEnemyMonStatus]
|
||||
and SLP
|
||||
and SLP_MASK
|
||||
jr z, .Redundant
|
||||
jr .NotRedundant
|
||||
|
||||
@@ -166,7 +166,7 @@ AI_Redundant:
|
||||
|
||||
.DreamEater:
|
||||
ld a, [wBattleMonStatus]
|
||||
and SLP
|
||||
and SLP_MASK
|
||||
jr z, .Redundant
|
||||
jr .NotRedundant
|
||||
|
||||
|
||||
@@ -1472,7 +1472,7 @@ AI_Smart_SleepTalk:
|
||||
; Greatly discourage this move otherwise.
|
||||
|
||||
ld a, [wEnemyMonStatus]
|
||||
and SLP
|
||||
and SLP_MASK
|
||||
cp 1
|
||||
jr z, .discourage
|
||||
|
||||
@@ -1610,7 +1610,7 @@ AI_Smart_HealBell:
|
||||
jr z, .ok
|
||||
dec [hl]
|
||||
.ok
|
||||
and 1 << FRZ | SLP
|
||||
and 1 << FRZ | SLP_MASK
|
||||
ret z
|
||||
call AI_50_50
|
||||
ret c
|
||||
|
||||
Reference in New Issue
Block a user