From 12c6275132f1f795aaf3fb235b9e0a1f4434cb6d Mon Sep 17 00:00:00 2001 From: matiascalegaris Date: Sat, 16 Sep 2023 18:08:19 -0300 Subject: [PATCH] prevent user to steal from inmovilized targets to prevent abuse --- Codigo/Trabajo.bas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Codigo/Trabajo.bas b/Codigo/Trabajo.bas index 9e39f831..ecadfb7f 100644 --- a/Codigo/Trabajo.bas +++ b/Codigo/Trabajo.bas @@ -1988,6 +1988,11 @@ Public Sub DoRobar(ByVal LadronIndex As Integer, ByVal VictimaIndex As Integer) 100 If UserList(LadronIndex).flags.Privilegios And (e_PlayerType.Consejero) Then Exit Sub 102 If MapInfo(UserList(VictimaIndex).Pos.Map).Seguro = 1 Then Exit Sub + + If Not UserMod.CanMove(UserList(VictimaIndex).flags, UserList(VictimaIndex).Counters) Then + Call WriteConsoleMsg(LadronIndex, "No podes robarle a objetivos inmovilizados.", e_FontTypeNames.FONTTYPE_FIGHT) + Exit Sub + End If 104 If UserList(VictimaIndex).flags.EnConsulta Then 106 Call WriteConsoleMsg(LadronIndex, "¡No puedes robar a usuarios en consulta!", e_FontTypeNames.FONTTYPE_INFO)