mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 05:57:20 +00:00
a91309c5f8
Gonna be doing this in alphabetical order now.
19 lines
595 B
C++
19 lines
595 B
C++
#include "BuccaneerValiantShip.h"
|
|
#include "SkillComponent.h"
|
|
|
|
void BuccaneerValiantShip::OnStartup(Entity* self) {
|
|
self->AddCallbackTimer(1.0F, [self]() {
|
|
auto* skillComponent = self->GetComponent<SkillComponent>();
|
|
auto* owner = self->GetOwner();
|
|
|
|
if (skillComponent != nullptr && owner != nullptr) {
|
|
skillComponent->CalculateBehavior(982, 20577, LWOOBJID_EMPTY, true, false, owner->GetObjectID());
|
|
|
|
// Kill self if missed
|
|
self->AddCallbackTimer(1.1F, [self]() {
|
|
self->Kill();
|
|
});
|
|
}
|
|
});
|
|
}
|