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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user