[Shared Tasks] Task Kill Update Fix (#1573)

* Revert "Revert "Shared task kill update fix""

This reverts commit 859751f74d.

* Swap return for continue in this context

* Slight tweak

* Slight tweak

* Remove no longer needed task methods

* Update scope for IncrementDoneCount

* Create helper method Client::GetPartyMembers() and add client->HasTaskState()

* Move HandleUpdateTasksOnKill responsibility to TaskManager

* Remove unnecessary pointer
This commit is contained in:
Chris Miles authored and GitHub committed 2021-10-01 20:57:00 -07:00
1 parent bb5c491794
commit 9a413cf553
8 files changed
+140 -126

No files matched your search

+1 -3
View File
@@ -2357,9 +2357,7 @@ bool NPC::Death(Mob* killer_mob, int32 damage, uint16 spell, EQ::skills::SkillTy
give_exp_client->GetCleanName(),
GetNPCTypeID()
);
give_exp_client
->GetTaskState()
->HandleUpdateTasksOnKill(give_exp_client, GetNPCTypeID());
task_manager->HandleUpdateTasksOnKill(give_exp_client, GetNPCTypeID());
}
if (kr) {