Skip to content

Commit 66b7d36

Browse files
authored
fix: flower activity (#1950)
1 parent 40fef36 commit 66b7d36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dScripts/02_server/Map/General/GrowingFlower.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "MissionComponent.h"
33
#include "eMissionTaskType.h"
44
#include "eMissionState.h"
5+
#include "ScriptedActivityComponent.h"
56
#include "Loot.h"
67

78
void GrowingFlower::OnSkillEventFired(Entity* self, Entity* target, const std::string& message) {
@@ -13,7 +14,10 @@ void GrowingFlower::OnSkillEventFired(Entity* self, Entity* target, const std::s
1314
const auto mission1 = self->GetVar<int32_t>(u"missionID");
1415
const auto mission2 = self->GetVar<int32_t>(u"missionID2");
1516

16-
Loot::DropActivityLoot(target, self->GetObjectID(), self->GetLOT(), 0);
17+
auto* scriptedActivityComponent = self->GetComponent<ScriptedActivityComponent>();
18+
if (scriptedActivityComponent != nullptr) {
19+
Loot::DropActivityLoot(target, self->GetObjectID(), scriptedActivityComponent->GetActivityID(), 0);
20+
}
1721

1822
auto* missionComponent = target->GetComponent<MissionComponent>();
1923
if (missionComponent != nullptr) {

0 commit comments

Comments
 (0)