Skip to content

Commit

Permalink
Fixed an issue with shark missions (#372)
Browse files Browse the repository at this point in the history
Fixed an issue where getting eaten by a shark would accidentally progress the task for entering the Ravencloud gate's left hand side.
  • Loading branch information
EmosewaMC authored Jan 14, 2022
1 parent ae06188 commit 24aaa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dScripts/ActSharkPlayerDeathTrigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void ActSharkPlayerDeathTrigger::OnFireEventServerSide(Entity *self, Entity *sen
MissionComponent* mis = static_cast<MissionComponent*>(sender->GetComponent(COMPONENT_TYPE_MISSION));
if (!mis) return;

mis->Progress(MissionTaskType::MISSION_TASK_TYPE_SCRIPT, 4734);
mis->Progress(MissionTaskType::MISSION_TASK_TYPE_SCRIPT, 8419);

if (sender->GetIsDead() || !sender->GetPlayerReadyForUpdates()) return; //Don't kill already dead players or players not ready

Expand Down

0 comments on commit 24aaa04

Please sign in to comment.