Apply suggestions from code review

Co-authored-by: Aleos <aleos89@users.noreply.github.com>
This commit is contained in:
Atemo 2024-06-14 21:28:14 +02:00 committed by GitHub
parent aceeb97126
commit 30a33ac7b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -213,9 +213,9 @@ Flags: Various status flags for specific status change events.
MobLoseTarget - When active on a monster it will lose the target. MobLoseTarget - When active on a monster it will lose the target.
RestartOnMapWarp - Restarts the timer of a status when warping to another map. RestartOnMapWarp - Restarts the timer of a status when warping to another map.
SpreadEffect - Passes the status onto a target when SC_DEADLYINFECT is active. SpreadEffect - Passes the status onto a target when SC_DEADLYINFECT is active.
SendVal1 - Whether val1 shoudn't be ignored. SendVal1 - Whether val1 shouldn't be ignored.
SendVal2 - Whether val2 shoudn't be ignored. SendVal2 - Whether val2 shouldn't be ignored.
SendVal3 - Whether val3 shoudn't be ignored. SendVal3 - Whether val3 shouldn't be ignored.
NoClearbuff - Cannot be removed by 'status_change_clear_buffs()', 'sc_end SC_ALL', 'status_change_clear(3)', etc. NoClearbuff - Cannot be removed by 'status_change_clear_buffs()', 'sc_end SC_ALL', 'status_change_clear(3)', etc.
NoForcedEnd - Cannot be removed by sc_end. NoForcedEnd - Cannot be removed by sc_end.

View File

@ -1751,8 +1751,7 @@ int clif_spawn( struct block_list *bl, bool walking ){
case BL_PET: case BL_PET:
if (vd->head_bottom) if (vd->head_bottom)
clif_pet_equip_area((TBL_PET*)bl); // needed to display pet equip properly clif_pet_equip_area((TBL_PET*)bl); // needed to display pet equip properly
clif_efst_status_change_sub( *bl, *bl, AREA_WOS ); [[fallthrough]];
break;
case BL_HOM: case BL_HOM:
case BL_MER: case BL_MER:
case BL_ELEM: case BL_ELEM:
@ -5111,8 +5110,7 @@ void clif_getareachar_unit( map_session_data* sd,struct block_list *bl ){
case BL_PET: case BL_PET:
if (vd->head_bottom) if (vd->head_bottom)
clif_pet_equip(sd, (TBL_PET*)bl); // needed to display pet equip properly clif_pet_equip(sd, (TBL_PET*)bl); // needed to display pet equip properly
clif_efst_status_change_sub( sd->bl, *bl, SELF ); [[fallthrough]];
break;
case BL_HOM: case BL_HOM:
case BL_ELEM: case BL_ELEM:
clif_efst_status_change_sub( sd->bl, *bl, SELF ); clif_efst_status_change_sub( sd->bl, *bl, SELF );