mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
fix: trigger commands can target the zone
Trigger commands with target="zone" gathered no targets, so they never ran. Forbidden Valley uses it for two ActivateSpawnerNetwork commands (qb1 on interact, qb2 on activation) in nd_forbidden_valley.lutriggers, and the winter large property uses it too. The zone is now the zone control object, the same entity scripts treat as the zone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -180,7 +180,9 @@ std::vector<Entity*> TriggerComponent::GatherTargets(LUTriggers::Command* comman
|
||||
|
||||
if (command->target == "self") entities.push_back(m_Parent);
|
||||
else if (command->target == "zone") {
|
||||
/*TODO*/
|
||||
// The zone itself is represented by the zone control object.
|
||||
auto* const zoneControl = Game::zoneManager->GetZoneControlObject();
|
||||
if (zoneControl) entities.push_back(zoneControl);
|
||||
} else if (command->target == "target" && optionalTarget) {
|
||||
entities.push_back(optionalTarget);
|
||||
} else if (command->target == "targetTeam" && optionalTarget) {
|
||||
|
||||
Reference in New Issue
Block a user