Skip to content

Commit

Permalink
Update AgSpiderBossMessage.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Jan 13, 2025
1 parent c855a6b commit a0960e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dScripts/ai/AG/AgSpiderBossMessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ void AgSpiderBossMessage::OnCollisionPhantom(Entity* self, Entity* target) {

auto box = GetBox(self);
// knockback the target
auto forward = target->GetRotation().GetForwardVector();
auto forward = self->GetRotation().GetForwardVector();
box.boxTarget = target->GetObjectID();
GameMessages::SendPlayFXEffect(target->GetObjectID(), 1378, u"create", "pushBack");
RenderComponent::PlayAnimation(target, "knockback-recovery");
forward.y += 15;
forward.x *= 100;
forward.z *= 100;
GameMessages::SendKnockback(target->GetObjectID(), self->GetObjectID(), self->GetObjectID(), 0, forward);
GameMessages::SendKnockback(target->GetObjectID(), LWOOBJID_EMPTY, LWOOBJID_EMPTY, 0, forward);

if (box.isTouch || box.isDisplayed) return;
box.boxSelf = self->GetObjectID();
Expand Down

0 comments on commit a0960e5

Please sign in to comment.