From 2c6e11b4642c147aaa54a9ce6444344ddb2ab8a0 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 19 Jan 2017 23:17:14 -0500 Subject: [PATCH] Have modify NPC stat AC/AGI recache AC --- zone/npc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/npc.cpp b/zone/npc.cpp index ebff4786a..c327db11f 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -1959,10 +1959,10 @@ void NPC::ModifyNPCStat(const char *identifier, const char *newValue) id[i] = std::tolower(id[i]); } - if(id == "ac") { AC = atoi(val.c_str()); return; } + if(id == "ac") { AC = atoi(val.c_str()); CalcAC(); return; } else if(id == "str") { STR = atoi(val.c_str()); return; } else if(id == "sta") { STA = atoi(val.c_str()); return; } - else if(id == "agi") { AGI = atoi(val.c_str()); return; } + else if(id == "agi") { AGI = atoi(val.c_str()); CalcAC(); return; } else if(id == "dex") { DEX = atoi(val.c_str()); return; } else if(id == "wis") { WIS = atoi(val.c_str()); CalcMaxMana(); return; } else if(id == "int" || id == "_int") { INT = atoi(val.c_str()); CalcMaxMana(); return; }