Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into ShatteredWorld
# Conflicts: # src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp # src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_lockmaw_and_augh.cpp # src/server/scripts/Kalimdor/LostCityOfTheTolvir/instance_lost_city_of_the_tolvir.cpp # src/server/scripts/Kalimdor/LostCityOfTheTolvir/lost_city_of_the_tolvir.h # src/server/scripts/Spells/spell_quest.cpp
This commit is contained in:
commit
3e4451cab7
39 files changed
+608
-158
No files matched your search
@@ -899,7 +899,14 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
|
||||
ok = true;
|
||||
}
|
||||
|
||||
if (cInfo->AIName == "TotemAI")
|
||||
if (cInfo->mingold > cInfo->maxgold)
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has `mingold` %u which is greater than `maxgold` %u, setting `maxgold` to %u.",
|
||||
cInfo->Entry, cInfo->mingold, cInfo->maxgold, cInfo->mingold);
|
||||
const_cast<CreatureTemplate*>(cInfo)->maxgold = cInfo->mingold;
|
||||
}
|
||||
|
||||
if (cInfo->AIName == "TotemAI" || cInfo->AIName == "PetAI")
|
||||
{
|
||||
TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has not-allowed `AIName` '%s' set, removing", cInfo->Entry, cInfo->AIName.c_str());
|
||||
const_cast<CreatureTemplate*>(cInfo)->AIName.clear();
|
||||
|
||||
Reference in new issue
Block a user