Removes the extra check in node["Drops"] (#6309)

This commit is contained in:
Atemo 2021-10-17 15:35:58 +02:00 committed by GitHub
parent 7d182b4baf
commit e015832fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,11 +318,6 @@ uint64 QuestDatabase::parseBodyNode(const YAML::Node &node) {
const YAML::Node &drops = node["Drops"];
for (const YAML::Node &dropNode : drops) {
if (quest->objectives.size() >= MAX_QUEST_OBJECTIVES) {
this->invalidWarning(dropNode, "Drops list exceeds the maximum of %d, skipping.\n", MAX_QUEST_OBJECTIVES);
return 0;
}
uint32 mob_id = 0; // Can be 0 which means all monsters
if (this->nodeExists(dropNode, "Mob")) {