mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-10 10:18:21 +00:00
16 lines
422 B
C++
16 lines
422 B
C++
#include "AgSurvivalBuffStation.h"
|
|
#include "SkillComponent.h"
|
|
#include "dLogger.h"
|
|
|
|
void AgSurvivalBuffStation::OnRebuildComplete(Entity* self, Entity* target) {
|
|
auto skillComponent = self->GetComponent<SkillComponent>();
|
|
|
|
if (skillComponent == nullptr) return;
|
|
|
|
skillComponent->CalculateBehavior(201, 1784, self->GetObjectID());
|
|
|
|
self->AddCallbackTimer(10.0f, [self]() {
|
|
self->Smash();
|
|
});
|
|
}
|