From eb3100de3616f776239b352bcf321c716c0b0581 Mon Sep 17 00:00:00 2001 From: KAKAN <22027824+theKAKAN@users.noreply.github.com> Date: Sun, 12 Sep 2021 19:06:28 +0000 Subject: [PATCH] Fix team kill and normal kill swapped onPlayerKill and onPlayerTeamKill were swapped --- module/Core/Events.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Core/Events.inc b/module/Core/Events.inc index 4f7a4899..a442adac 100644 --- a/module/Core/Events.inc +++ b/module/Core/Events.inc @@ -444,7 +444,7 @@ void Core::EmitPlayerKilled(int32_t player_id, int32_t killer_id, int32_t reason #ifdef VCMP_ENABLE_OFFICIAL if (IsOfficial()) { - if (!team_kill) + if (team_kill) { ExecuteLegacyEvent(m_VM, _SC("onPlayerTeamKill"), _killer.mLgObj, _player.mLgObj, reason, static_cast< int32_t >(body_part)); }