[Tasks] Use dz switch id for task touch events (#2344)

This changes task touch elements to use the dz_switch_id as the goal id
instead of checking if a player zoned. It will remove the need to script
door clicks or modify task element zone field since task packet data can
just be imported.
This commit is contained in:
hg authored and GitHub committed 2022-07-30 21:14:22 -05:00
1 parent 676467cbdc
commit 5e7e255d72
5 files changed
+13 -18

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ void Doors::HandleClick(Client* sender, uint8 trigger) {
if (m_dz_switch_id != 0)
{
// todo: update task touch task events with matching dz switch id
sender->UpdateTasksOnTouchSwitch(m_dz_switch_id);
if (sender->TryMovePCDynamicZoneSwitch(m_dz_switch_id))
{
safe_delete(outapp);