|
@@ -843,12 +843,25 @@ void QuestManager::saveQuests()
|
|
|
|
|
|
|
|
void QuestManager::processEvent(QuestEvent* event)
|
|
void QuestManager::processEvent(QuestEvent* event)
|
|
|
{
|
|
{
|
|
|
- QuestParty* party = zParty(event->zActingEntity()->getId());
|
|
|
|
|
- if (party)
|
|
|
|
|
|
|
+ if (!event->zActingEntity())
|
|
|
{
|
|
{
|
|
|
- for (QuestCollection* questCollection : questCollections)
|
|
|
|
|
|
|
+ for (QuestParty* party : parties)
|
|
|
{
|
|
{
|
|
|
- questCollection->processEvent(event, party);
|
|
|
|
|
|
|
+ for (QuestCollection* questCollection : questCollections)
|
|
|
|
|
+ {
|
|
|
|
|
+ questCollection->processEvent(event, party);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ QuestParty* party = zParty(event->zActingEntity()->getId());
|
|
|
|
|
+ if (party)
|
|
|
|
|
+ {
|
|
|
|
|
+ for (QuestCollection* questCollection : questCollections)
|
|
|
|
|
+ {
|
|
|
|
|
+ questCollection->processEvent(event, party);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
event->release();
|
|
event->release();
|