Updated get_bosstype and UMOB_MODE (#8439)

* Updated mob_data::get_bosstype() to use current mob data instead of db data to fix issue when the mode is changed via the setunitdata script command.
* Added unit_refresh in UMOB_MODE to refresh the mini icon near the monster indicating the monster type.
This commit is contained in:
Atemo
2024-06-17 19:38:00 +02:00
committed by GitHub
parent 44fbe3940d
commit ce5de23874
2 changed files with 10 additions and 3 deletions

View File

@@ -377,8 +377,10 @@ e_mob_bosstype s_mob_db::get_bosstype(){
}
e_mob_bosstype mob_data::get_bosstype(){
if( this->db != nullptr ){
return this->db->get_bosstype();
if( status_has_mode( &this->status, MD_MVP ) ){
return BOSSTYPE_MVP;
}else if( this->status.class_ == CLASS_BOSS ){
return BOSSTYPE_MINIBOSS;
}else{
return BOSSTYPE_NONE;
}