Skip to content

Commit

Permalink
fix(game_ui): Second ability was not handled in mode 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored and maxime1907 committed Jun 29, 2024
1 parent 2d46206 commit 5bcda90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/entwatch_dz.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};

Expand Down Expand Up @@ -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++;
Expand Down Expand Up @@ -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");
}
}
}
}

0 comments on commit 5bcda90

Please sign in to comment.