1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00

Fix random spells being picked for hero (#694)

This commit is contained in:
asimon-1 2024-08-19 05:17:15 -07:00 committed by GitHub
parent 29f1d5b68e
commit 254578982b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,7 +104,7 @@ pub unsafe fn handle_buffs(
} }
unsafe fn buff_hero(module_accessor: &mut app::BattleObjectModuleAccessor, status: i32) -> bool { unsafe fn buff_hero(module_accessor: &mut app::BattleObjectModuleAccessor, status: i32) -> bool {
let buff_vec: Vec<BuffOption> = MENU.buff_state.to_vec(); let buff_vec: Vec<BuffOption> = MENU.buff_state.hero_buffs().to_vec();
if !is_buffing(module_accessor) { if !is_buffing(module_accessor) {
// Initial set up for spells // Initial set up for spells
start_buff(module_accessor); start_buff(module_accessor);