mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
user xor operator for clearing status flags
use xor operator for clearing status flags
This commit is contained in:
parent
61edd43974
commit
9c93ef3bff
2 changed files with 6 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ CureVolatileStatuses: ; 13a37 (4:7a37)
|
|||
inc hl ; BATTSTATUS2
|
||||
ld a, [hl]
|
||||
; clear UsingXAccuracy, ProtectedByMist, GettingPumped, and Seeded statuses
|
||||
and (1 << UsingRage) | (1 << NeedsToRecharge) | (1 << HasSubstituteUp) | (1 << 3)
|
||||
and $ff ^((1 << UsingXAccuracy) | (1 << ProtectedByMist) | (1 << GettingPumped) | (1 << Seeded))
|
||||
ld [hli], a ; BATTSTATUS3
|
||||
ld a, [hl]
|
||||
and %11110000 | (1 << Transformed) ; clear Bad Poison, Reflect and Light Screen statuses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue