lufia2ac: prevent using party member items if party is full

This commit is contained in:
el-u 2022-12-17 14:42:48 +01:00 committed by Fabian Dill
parent b83aec5c12
commit ff9c11d772
2 changed files with 3 additions and 0 deletions

View File

@ -273,6 +273,9 @@ SpecialItemUse:
ADC.w #$FD2E ADC.w #$FD2E
STA $09B7 ; set pointer to L2SASM join script STA $09B7 ; set pointer to L2SASM join script
SEP #$20 SEP #$20
LDA $07A9 ; load EV register $11 (party counter)
CMP.b #$03
BPL + ; abort if party full
LDA.b #$8E LDA.b #$8E
STA $09B9 STA $09B9
PHK PHK