The code here defines the coordinates of the HPBar, which initially uses negative coordinates since the count starts at 1 (inc d).
However, it is incorrectly interpreted as an OAM-related address. It is not related to OAM.
I recommend changing the ld hl, wShadowOAMSprite36 into the corresponding coordinate address, e.g., hlcoord 4, -1.
https://github.com/pret/pokered/blob/17eaf761e38cea827320f984cfaaa1527276ab15/engine/items/item_effects.asm#L1176-L1180
The code here defines the coordinates of the HPBar, which initially uses negative coordinates since the count starts at 1 (
inc d
). However, it is incorrectly interpreted as an OAM-related address. It is not related to OAM. I recommend changing theld hl, wShadowOAMSprite36
into the corresponding coordinate address, e.g.,hlcoord 4, -1
.