public void OnReceiveCreatureSquare(Creature creature) { if (Enable && !GlobalVariables.IsAttacking() && creature.GetSquare() == SquareColor.Black) { if (creature.IsMonster()) { if (!Kernel.GetInstance().AutoLoot.IsLooting || GlobalVariables.GetPlayerPosition().IsAdjacentTo(creature.GetPosition())) { Game.GetInstance().Attack(creature); } } } }