Skip to content

Commit

Permalink
Identify some magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroDeoxys committed May 3, 2024
1 parent 9d83ac5 commit 26b5644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/duel/effect_functions.asm
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ ApplySubstatus2ToDefendingCard:
call GetNonTurnDuelistVariable
pop af
ld [hl], a
ld l, $f6
ld l, DUELVARS_ARENA_CARD_LAST_TURN_SUBSTATUS2
ld [hl], a
ret

Expand Down
2 changes: 1 addition & 1 deletion src/engine/menus/duel.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ DrawInPlayArea_Icons:
; discard pile
ldh a, [hWhoseTurn]
ld d, a
ld e, $ed
ld e, DUELVARS_NUMBER_OF_CARDS_IN_DISCARD_PILE
ld a, [de]
ld b, a
ld a, $d8 ; discard pile tile
Expand Down

0 comments on commit 26b5644

Please sign in to comment.