From 54cee694ff1d0cdb0e97f572691c66cae6ddff20 Mon Sep 17 00:00:00 2001 From: Bluzume <39113159+KuromeSan@users.noreply.github.com> Date: Fri, 5 Nov 2021 00:57:54 -0400 Subject: [PATCH] abc --- HorseIsleServer/HorseIsleServer/Game/Chat/Command.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HorseIsleServer/HorseIsleServer/Game/Chat/Command.cs b/HorseIsleServer/HorseIsleServer/Game/Chat/Command.cs index a19506b..8ef9687 100644 --- a/HorseIsleServer/HorseIsleServer/Game/Chat/Command.cs +++ b/HorseIsleServer/HorseIsleServer/Game/Chat/Command.cs @@ -462,7 +462,7 @@ namespace HISP.Game.Chat int amount = 0; try { - id = int.Parse(args[0]); + id = int.Parse(args[0])-1; amount = int.Parse(args[2]); } catch (Exception) @@ -470,12 +470,12 @@ namespace HISP.Game.Chat return false; } - if (id < 0 && id > instances.Length) + if (id < 0 || id > instances.Length-1) return false; switch (args[1].ToUpper()) { - case "INTELIGENCE": + case "INTELLIGENCE": instances[id].AdvancedStats.Inteligence = amount; break; case "PERSONALITY":