mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-03 22:21:59 +00:00 
			
		
		
		
	Fixed an issue with shark missions (#372)
Fixed an issue where getting eaten by a shark would accidentally progress the task for entering the Ravencloud gate's left hand side.
This commit is contained in:
		@@ -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
 | 
			
		||||
		
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user