mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-30 19:11:31 +00:00
WIS fix.
WIS was actually setting MR.
This commit is contained in:
parent
1f43e69b4c
commit
f89357f3c8
@ -6965,7 +6965,7 @@ void command_npcedit(Client *c, const Seperator *sep)
|
||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
||||
char *query = 0;
|
||||
c->Message(15,"NPCID %u now has a Magic Resistance of %i.",c->GetTarget()->CastToNPC()->GetNPCTypeID(),atoi(sep->arg[2]));
|
||||
database.RunQuery(query, MakeAnyLenString(&query, "update npc_types set MR=%i where id=%i",atoi(sep->argplus[2]),c->GetTarget()->CastToNPC()->GetNPCTypeID()), errbuf);
|
||||
database.RunQuery(query, MakeAnyLenString(&query, "update npc_types set WIS=%i where id=%i",atoi(sep->argplus[2]),c->GetTarget()->CastToNPC()->GetNPCTypeID()), errbuf);
|
||||
c->LogSQL(query);
|
||||
safe_delete_array(query);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user