diff --git a/dScripts/BuccaneerValiantShip.cpp b/dScripts/BuccaneerValiantShip.cpp index 2c24b7d4..1cc1e633 100644 --- a/dScripts/BuccaneerValiantShip.cpp +++ b/dScripts/BuccaneerValiantShip.cpp @@ -3,20 +3,15 @@ #include "dLogger.h" void BuccaneerValiantShip::OnStartup(Entity* self) { - const auto skill = 982; - const auto behavior = 20577; - const auto skillCastTimer = 1.0F; - - self->AddCallbackTimer(skillCastTimer, [self]() { + self->AddCallbackTimer(1.0F, [self]() { auto* skillComponent = self->GetComponent(); auto* owner = self->GetOwner(); if (skillComponent != nullptr && owner != nullptr) { - skillComponent->CalculateBehavior(skill, behavior, LWOOBJID_EMPTY, true, false, owner->GetObjectID()); + skillComponent->CalculateBehavior(982, 20577, LWOOBJID_EMPTY, true, false, owner->GetObjectID()); // Kill self if missed - const auto selfSmashTimer = 1.1F; - self->AddCallbackTimer(selfSmashTimer, [self]() { + self->AddCallbackTimer(1.1F, [self]() { self->Kill(); }); }