mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
fiux mission (#1596)
This commit is contained in:
parent
debc2a96e2
commit
0348db72a5
@ -15,6 +15,7 @@
|
|||||||
#include "SkillComponent.h"
|
#include "SkillComponent.h"
|
||||||
#include "eReplicaComponentType.h"
|
#include "eReplicaComponentType.h"
|
||||||
#include "RenderComponent.h"
|
#include "RenderComponent.h"
|
||||||
|
#include "PlayerManager.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@ -53,12 +54,14 @@ void BossSpiderQueenEnemyServer::OnStartup(Entity* self) {
|
|||||||
|
|
||||||
void BossSpiderQueenEnemyServer::OnDie(Entity* self, Entity* killer) {
|
void BossSpiderQueenEnemyServer::OnDie(Entity* self, Entity* killer) {
|
||||||
if (Game::zoneManager->GetZoneID().GetMapID() == instanceZoneID && killer) {
|
if (Game::zoneManager->GetZoneID().GetMapID() == instanceZoneID && killer) {
|
||||||
auto* missionComponent = killer->GetComponent<MissionComponent>();
|
for (const auto& player : PlayerManager::GetAllPlayers()) {
|
||||||
|
auto* missionComponent = player->GetComponent<MissionComponent>();
|
||||||
if (missionComponent == nullptr)
|
if (missionComponent == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
missionComponent->CompleteMission(instanceMissionID);
|
missionComponent->CompleteMission(instanceMissionID);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// There is suppose to be a 0.1 second delay here but that may be admitted?
|
// There is suppose to be a 0.1 second delay here but that may be admitted?
|
||||||
auto* controller = Game::entityManager->GetZoneControlEntity();
|
auto* controller = Game::entityManager->GetZoneControlEntity();
|
||||||
|
Loading…
Reference in New Issue
Block a user