[Cleanup] Control flow defaults missed in recent bot updates (#4817)

This commit is contained in:
JJ 2025-03-29 20:07:31 -04:00 committed by GitHub
parent 82b48fe6e8
commit 950cc4a325
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -10599,6 +10599,8 @@ BotSpell Bot::GetSpellByHealType(uint16 spell_type, Mob* tar) {
return GetBestBotSpellForHealOverTime(this, tar, spell_type);
case BotSpellTypes::GroupHoTHeals:
return GetBestBotSpellForGroupHealOverTime(this, tar, spell_type);
default:
return BotSpell(); // Return an empty BotSpell if no valid spell type is found
}
}
@ -10650,7 +10652,7 @@ int Bot::GetDefaultSetting(uint16 setting_category, uint16 setting_type, uint8 s
case BotSettingCategories::SpellTypeAnnounceCast:
return GetDefaultSpellTypeAnnounceCast(setting_type, stance);
default:
break;
return 0; // Default return value for unrecognized categories
}
}
@ -10689,7 +10691,7 @@ int Bot::GetSetting(uint16 setting_category, uint16 setting_type) {
case BotSettingCategories::SpellTypeAnnounceCast:
return GetSpellTypeAnnounceCast(setting_type);
default:
break;
return 0; // Default return value for unrecognized categories
}
}

View File

@ -256,6 +256,8 @@ int Client::GetDefaultBotSettings(uint8 setting_type, uint16 bot_setting) {
return GetDefaultSpellTypeMinThreshold(bot_setting);
case BotSettingCategories::SpellMaxThreshold:
return GetDefaultSpellTypeMaxThreshold(bot_setting);
default:
return 0; // default return for any unsupported setting type
}
}
@ -269,6 +271,8 @@ int Client::GetBotSetting(uint8 setting_type, uint16 bot_setting) {
return GetSpellTypeMinThreshold(bot_setting);
case BotSettingCategories::SpellMaxThreshold:
return GetSpellTypeMaxThreshold(bot_setting);
default:
return 0; // default return for any unsupported setting type
}
}