mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
Update comments related to Swift and Substitute checks (#380)
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
This commit is contained in:
parent
8b19405590
commit
ac7263b1ad
1 changed files with 2 additions and 2 deletions
|
@ -5368,10 +5368,10 @@ MoveHitTest:
|
|||
.swiftCheck
|
||||
ld a, [de]
|
||||
cp SWIFT_EFFECT
|
||||
ret z ; Swift never misses (interestingly, Azure Heights lists this is a myth, but it appears to be true)
|
||||
ret z ; Swift never misses (this was fixed from the Japanese versions)
|
||||
call CheckTargetSubstitute ; substitute check (note that this overwrites a)
|
||||
jr z, .checkForDigOrFlyStatus
|
||||
; This code is buggy. It's supposed to prevent HP draining moves from working on substitutes.
|
||||
; The fix for Swift broke this code. It's supposed to prevent HP draining moves from working on Substitutes.
|
||||
; Since CheckTargetSubstitute overwrites a with either $00 or $01, it never works.
|
||||
cp DRAIN_HP_EFFECT
|
||||
jp z, .moveMissed
|
||||
|
|
Loading…
Reference in a new issue