Guards Error:
Code:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary'2.get_Item<Tkey key>
at CoEmuV2.GameServer.Entities.Monster.AttackMove<Int32 Target, Boolean First> in Monster.cs line 840
Code:
if (this.Info.Name != "Watcher1")
{
if (this.Info.Name != "Watcher1")
{
[COLOR="Red"]DMap DMap = Nano.DMaps[Map];[/COLOR]
if (!DMap[X + AddX, Y + AddY, DMapObjectType.MOB])
{
trys++;
if (trys < 2)
{ ToDir = (byte)Nano.Rand.Next(1, 7); goto Go; }
Move = null;
Moving = false;
return;
}
else
{
if (Handler.PlaceFree(Map, X, Y, ToDir))
{
X += AddX;
Y += AddY;
ConquerPacket.ToLocal(ConquerPacket.Walk(ToDir, UID), X, Y, Map, 0, 0);
Move.Start();
}
else
{
trys2++;
if (trys2 < 2)
{ ToDir = (byte)Nano.Rand.Next(1, 7); goto Go; }
Move = null;
Moving = false;
return;
}
}
}
}
}






