From 3de2c3bfc63a44672c3ba3ea9eb29cd019e4bb40 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 6 Feb 2022 21:32:36 -0800 Subject: [PATCH] set faction of buff station to 6 --- dScripts/AgSurvivalBuffStation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dScripts/AgSurvivalBuffStation.cpp b/dScripts/AgSurvivalBuffStation.cpp index 41a754d6..a9a4b75d 100644 --- a/dScripts/AgSurvivalBuffStation.cpp +++ b/dScripts/AgSurvivalBuffStation.cpp @@ -1,8 +1,13 @@ #include "AgSurvivalBuffStation.h" #include "SkillComponent.h" #include "dLogger.h" +#include "DestroyableComponent.h" void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) { + auto destroyableComponent = self->GetComponent(); + + if (destroyableComponent != nullptr) destroyableComponent->SetFaction(6); + auto skillComponent = self->GetComponent(); if (skillComponent == nullptr) return;