mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Changed Bots:AAExpansion to Bots:BotExpansionSettings and converted it bitmask use; Fix for bots not honoring aa expansion setting
This commit is contained in:
+12
-4
@@ -1467,12 +1467,20 @@ bool Mob::CanUseAlternateAdvancementRank(AA::Rank *rank) {
|
||||
}
|
||||
}
|
||||
|
||||
if(IsClient()) {
|
||||
if(rank->expansion && !(CastToClient()->GetPP().expansions & (1 << (rank->expansion - 1)))) {
|
||||
if (IsClient()) {
|
||||
if (rank->expansion && !(CastToClient()->GetPP().expansions & (1 << (rank->expansion - 1)))) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if(rank->expansion && !(RuleI(World, ExpansionSettings) & (1 << (rank->expansion - 1)))) {
|
||||
}
|
||||
#ifdef BOTS
|
||||
else if (IsBot()) {
|
||||
if (rank->expansion && !(RuleI(Bots, BotExpansionSettings) & (1 << (rank->expansion - 1)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
if (rank->expansion && !(RuleI(World, ExpansionSettings) & (1 << (rank->expansion - 1)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
+5
-3
@@ -1606,7 +1606,7 @@ int32 Bot::GenerateBaseHitPoints() {
|
||||
}
|
||||
|
||||
void Bot::LoadAAs() {
|
||||
int maxAAExpansion = RuleI(Bots, AAExpansion); //get expansion to get AAs up to
|
||||
|
||||
aa_ranks.clear();
|
||||
|
||||
int id = 0;
|
||||
@@ -8852,15 +8852,17 @@ void Bot::CalcBotStats(bool showtext) {
|
||||
GetBotOwner()->Message(Chat::Yellow, "Updating %s...", GetCleanName());
|
||||
}
|
||||
|
||||
if(!IsValidRaceClassCombo()) {
|
||||
// this code is annoying since many classes change their name and illusions change the race id
|
||||
/*if(!IsValidRaceClassCombo()) {
|
||||
GetBotOwner()->Message(Chat::Yellow, "A %s - %s bot was detected. Is this Race/Class combination allowed?.", GetRaceIDName(GetRace()), GetClassIDName(GetClass(), GetLevel()));
|
||||
GetBotOwner()->Message(Chat::Yellow, "Previous Bots Code releases did not check Race/Class combinations during create.");
|
||||
GetBotOwner()->Message(Chat::Yellow, "Unless you are experiencing heavy lag, you should delete and remake this bot.");
|
||||
}
|
||||
}*/
|
||||
|
||||
if(GetBotOwner()->GetLevel() != GetLevel())
|
||||
SetLevel(GetBotOwner()->GetLevel());
|
||||
|
||||
LoadAAs();
|
||||
GenerateSpecialAttacks();
|
||||
|
||||
if(showtext) {
|
||||
|
||||
Reference in New Issue
Block a user