Filter/Fixup

* fix criterium related world event:none excluding unspawned entities
This commit is contained in:
Sarjuuk 2026-02-26 10:49:18 +01:00
parent c85675e181
commit 254f3f7f1a
2 changed files with 2 additions and 2 deletions

View file

@ -432,7 +432,7 @@ class CreatureListFilter extends Filter
{
if ($eventIds = DB::Aowow()->selectCol('SELECT `id` FROM ::events WHERE `holidayId` <> 0'))
if ($cGuids = DB::World()->selectCol('SELECT DISTINCT `guid` FROM game_event_creature WHERE `eventEntry` IN %in', $eventIds))
return ['s.guid', $cGuids, '!'];
return [DB::OR, ['s.guid', $cGuids, '!'], ['s.guid', null]];
return [0];
}

View file

@ -228,7 +228,7 @@ class GameObjectListFilter extends Filter
{
if ($eventIds = DB::Aowow()->selectCol('SELECT `id` FROM ::events WHERE `holidayId` <> 0'))
if ($goGuids = DB::World()->selectCol('SELECT DISTINCT `guid` FROM game_event_gameobject WHERE `eventEntry` IN %in', $eventIds))
return ['s.guid', $goGuids, '!'];
return [DB::OR, ['s.guid', $goGuids, '!'], ['s.guid', null]];
return [0];
}