Fixes autobonus trigger failure (#6128)
* Fixes #5873. * Follow up to bf9a3b4. * Fixes an issue with autobonuses not being triggered properly. Thanks to @Indigo000!
This commit is contained in:
parent
36f6ebf98c
commit
76c81a46ca
@ -2886,7 +2886,7 @@ void pc_exeautobonus(struct map_session_data *sd, std::vector<s_autobonus> *bonu
|
||||
|
||||
autobonus->active = add_timer(gettick()+autobonus->duration, pc_endautobonus, sd->bl.id, (intptr_t)bonus);
|
||||
sd->state.autobonus |= autobonus->pos;
|
||||
status_calc_pc(sd,SCO_NONE);
|
||||
status_calc_pc(sd,SCO_FORCE);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2907,7 +2907,7 @@ TIMER_FUNC(pc_endautobonus){
|
||||
}
|
||||
}
|
||||
|
||||
status_calc_pc(sd,SCO_NONE);
|
||||
status_calc_pc(sd,SCO_FORCE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -10827,7 +10827,7 @@ static void pc_unequipitem_sub(struct map_session_data *sd, int n, int flag) {
|
||||
|
||||
if (flag & 1 || status_calc) {
|
||||
pc_checkallowskill(sd);
|
||||
status_calc_pc(sd, SCO_NONE);
|
||||
status_calc_pc(sd, SCO_FORCE);
|
||||
}
|
||||
|
||||
if (sd->sc.data[SC_SIGNUMCRUCIS] && !battle_check_undead(sd->battle_status.race, sd->battle_status.def_ele))
|
||||
|
Loading…
x
Reference in New Issue
Block a user