[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
2022-07-30 22:14:22 -04:00
committed by GitHub
parent 676467cbdc
commit 5e7e255d72
5 changed files with 13 additions and 18 deletions
+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);