Merge pull request #1258 from normalamron/pracfix
Some checks are pending
Compile / Build SM ${{ matrix.sm-version }} (1.12) (push) Waiting to run
Compile / Release (push) Blocked by required conditions

This commit is contained in:
rtldg 2025-09-30 23:34:50 +00:00 committed by GitHub
commit a5bec0403b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2301,7 +2301,7 @@ public int Native_SetPracticeMode(Handle handler, int numParams)
bool practice = view_as<bool>(GetNativeCell(2));
bool alert = view_as<bool>(GetNativeCell(3));
if(alert && practice && !gA_Timers[client].bPracticeMode && (!gB_HUD || (Shavit_GetHUDSettings(client) & HUD_NOPRACALERT) == 0))
if(alert && practice && !gA_Timers[client].bPracticeMode && (!gB_HUD || (Shavit_GetHUDSettings(client) & HUD_NOPRACALERT) == 0) && !Shavit_InsideZone(client, Zone_Start, -1))
{
Shavit_PrintToChat(client, "%T", "PracticeModeAlert", client, gS_ChatStrings.sWarning, gS_ChatStrings.sText);
}