Added boss icons for pets (#5674)

Fixes #5622

Thanks to @eppc0330
This commit is contained in:
Lemongrass3110 2021-01-04 16:37:49 +01:00 committed by GitHub
parent 46cf310364
commit 0aa3c94ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1169,7 +1169,14 @@ static void clif_set_unit_idle( struct block_list* bl, bool walking, send_target
p.maxHP = -1;
p.HP = -1;
}
p.isBoss = ( bl->type == BL_MOB ) ? ( (mob_data*)bl )->get_bosstype() : BOSSTYPE_NONE;
if( bl->type == BL_MOB ){
p.isBoss = ( (mob_data*)bl )->get_bosstype();
}else if( bl->type == BL_PET ){
p.isBoss = ( (pet_data*)bl )->db->get_bosstype();
}else{
p.isBoss = BOSSTYPE_NONE;
}
#endif
#if PACKETVER >= 20150513
p.body = vd->body_style;
@ -1304,7 +1311,13 @@ static void clif_spawn_unit( struct block_list *bl, enum send_target target ){
p.HP = -1;
}
p.isBoss = ( bl->type == BL_MOB ) ? ( (mob_data*)bl )->get_bosstype() : BOSSTYPE_NONE;
if( bl->type == BL_MOB ){
p.isBoss = ( (mob_data*)bl )->get_bosstype();
}else if( bl->type == BL_PET ){
p.isBoss = ( (pet_data*)bl )->db->get_bosstype();
}else{
p.isBoss = BOSSTYPE_NONE;
}
#endif
#if PACKETVER >= 20150513
p.body = vd->body_style;
@ -1406,7 +1419,13 @@ static void clif_set_unit_walking( struct block_list *bl, struct map_session_dat
p.HP = -1;
}
p.isBoss = ( bl->type == BL_MOB ) ? ( (mob_data*)bl )->get_bosstype() : BOSSTYPE_NONE;
if( bl->type == BL_MOB ){
p.isBoss = ( (mob_data*)bl )->get_bosstype();
}else if( bl->type == BL_PET ){
p.isBoss = ( (pet_data*)bl )->db->get_bosstype();
}else{
p.isBoss = BOSSTYPE_NONE;
}
#endif
#if PACKETVER >= 20150513
p.body = vd->body_style;