From 5bcda90f60030509eb4c5ffc71830fa860ec1042 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Fri, 28 Jun 2024 07:44:23 +0200 Subject: [PATCH] fix(game_ui): Second ability was not handled in mode 3 --- addons/sourcemod/scripting/entwatch_dz.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sourcemod/scripting/entwatch_dz.sp b/addons/sourcemod/scripting/entwatch_dz.sp index bd70124..9afb718 100644 --- a/addons/sourcemod/scripting/entwatch_dz.sp +++ b/addons/sourcemod/scripting/entwatch_dz.sp @@ -87,7 +87,7 @@ public Plugin myinfo = name = "EntWatch", author = "DarkerZ[RUS], AgentWesker, notkoen, sTc2201, maxime1907, Cmer, .Rushaway, Dolly", description = "Notify players about entity interactions.", - version = "3.DZ.58", + version = "3.DZ.59", url = "dark-skill.ru" }; @@ -1624,7 +1624,7 @@ stock void OnGameUIUse(const char[] sOutput, int iCaller, int iActivator, float continue; } case 3: - if(iItemMaxUses < iItemMaxUses) + if((bSecondAbility ? ItemTest.Uses2 : ItemTest.Uses) < iItemMaxUses) { Events_OnUseItem(ItemTest, iActivator, iAbility); bSecondAbility ? ItemTest.Uses2++ : ItemTest.Uses++; @@ -2224,4 +2224,4 @@ stock void LockButton(int iClient, int iArgs, bool bSecond = false) CReplyToCommand(iClient, "%s%t %s%s %s%t %t", g_SchemeConfig.Color_Tag, "EW_Tag", g_SchemeConfig.Color_Name, ItemTest.Name, g_SchemeConfig.Color_Enabled, "Button", "Modified"); } } -} \ No newline at end of file +}