Cleaned up status_change_end (#7211)
* Removed leftover old debug info that made it necessary to the hide the real function behind a define. * Introduced a C++ default argument for timer id, as the timer id is only needed a single time, when the status expires naturally. * Replaced all currently existing calls that had INVALID_TIMER as argument and made use of the new default argument.
This commit is contained in:
@@ -2069,7 +2069,7 @@ TIMER_FUNC(pet_recovery_timer){
|
||||
//Display a heal animation?
|
||||
//Detoxify is chosen for now.
|
||||
clif_skill_nodamage(&pd->bl,&sd->bl,TF_DETOXIFY,1,1);
|
||||
status_change_end(&sd->bl, pd->recovery->type, INVALID_TIMER);
|
||||
status_change_end(&sd->bl, pd->recovery->type);
|
||||
clif_emotion(&pd->bl, ET_OK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user