Skip to content

Commit

Permalink
FF7: Use equipped Attack behavior when using auto-attack shortcut (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
postscriptthree authored Jan 10, 2025
1 parent 89d2fe6 commit f9cb1dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ff7/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ uint32_t ff7_menu_decrease_item_quantity(uint32_t item_used)
}

void dispatchAttackCommand(){
*ff7_externals.issued_command_id = 0x01;
char* character = (char*)ff7_externals.menu_objects + 0x2CBC; //Character attacking
char* attack = (char*)ff7_externals.gamepad_status + 0xCA8 + (*character * 6); //Their equipped attack
*ff7_externals.issued_command_id = *attack;
*ff7_externals.issued_action_target_type = 0;
*ff7_externals.issued_action_target_index = 4;
((void(*)())ff7_externals.dispatch_chosen_battle_action)();
Expand Down

0 comments on commit f9cb1dd

Please sign in to comment.