This commit is contained in:
Bluzume 2021-11-05 00:57:54 -04:00
parent 6c70fe597c
commit 54cee694ff

View file

@ -462,7 +462,7 @@ namespace HISP.Game.Chat
int amount = 0; int amount = 0;
try try
{ {
id = int.Parse(args[0]); id = int.Parse(args[0])-1;
amount = int.Parse(args[2]); amount = int.Parse(args[2]);
} }
catch (Exception) catch (Exception)
@ -470,12 +470,12 @@ namespace HISP.Game.Chat
return false; return false;
} }
if (id < 0 && id > instances.Length) if (id < 0 || id > instances.Length-1)
return false; return false;
switch (args[1].ToUpper()) switch (args[1].ToUpper())
{ {
case "INTELIGENCE": case "INTELLIGENCE":
instances[id].AdvancedStats.Inteligence = amount; instances[id].AdvancedStats.Inteligence = amount;
break; break;
case "PERSONALITY": case "PERSONALITY":