mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Add FlagComponent and msg handlers
This commit is contained in:
@@ -390,10 +390,15 @@ void Mission::Catchup() {
|
||||
}
|
||||
|
||||
if (type == eMissionTaskType::PLAYER_FLAG) {
|
||||
for (int32_t target : task->GetAllTargets()) {
|
||||
const auto flag = GetCharacter()->GetPlayerFlag(target);
|
||||
GameMessages::GetFlag getFlag{};
|
||||
getFlag.target = entity->GetObjectID();
|
||||
|
||||
if (!flag) {
|
||||
for (int32_t target : task->GetAllTargets()) {
|
||||
getFlag.iFlagId = target;
|
||||
getFlag.bFlag = false;
|
||||
SEND_ENTITY_MSG(getFlag);
|
||||
|
||||
if (!getFlag.bFlag) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user