Changes to allow individual spawn2 locations to vary in npc selection (cond)

This commit is contained in:
Noudess
2019-09-02 10:34:09 -04:00
parent 26e14c02b6
commit 2e98de3923
7 changed files with 46 additions and 21 deletions
+10 -1
View File
@@ -258,7 +258,16 @@ Mob *QuestManager::spawn_from_spawn2(uint32 spawn2_id)
return nullptr;
}
}
uint32 npcid = spawn_group->GetNPCType();
uint16 condition_value=1;
uint16 condition_id=found_spawn->GetSpawnCondition();
if (condition_id > 0) {
condition_value = zone->spawn_conditions.GetCondition(zone->GetShortName(), zone->GetInstanceID(), condition_id);
}
uint32 npcid = spawn_group->GetNPCType(condition_value);
if (npcid == 0) {
return nullptr;
}