Core/Misc: Misc Fixes

This commit is contained in:
hondacrx
2018-05-22 00:43:21 -04:00
parent 5dacd669b5
commit 0be2dc08e2
19 changed files with 72 additions and 115 deletions
+3 -2
View File
@@ -71,8 +71,6 @@ namespace Game.Chat.Commands
handler.SendSysMessage(CypherStrings.CommandGocreatnotfound);
return false;
}
if (result.GetRowCount() > 1)
handler.SendSysMessage(CypherStrings.CommandGocreatmultiple);
float x = result.Read<float>(0);
float y = result.Read<float>(1);
@@ -80,6 +78,9 @@ namespace Game.Chat.Commands
float o = result.Read<float>(3);
uint mapId = result.Read<ushort>(4);
if (result.NextRow())
handler.SendSysMessage(CypherStrings.CommandGocreatmultiple);
if (!GridDefines.IsValidMapCoord(mapId, x, y, z, o) || Global.ObjectMgr.IsTransportMap(mapId))
{
handler.SendSysMessage(CypherStrings.InvalidTargetCoord, x, y, mapId);