From 3a6f326a8a82d6245a00ec20d5226acd38a65064 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 2 Jun 2012 21:00:09 -0300 Subject: [PATCH] attack moving creatures --- TODO | 1 - src/otclient/core/tile.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index c04b2b89..d138757a 100644 --- a/TODO +++ b/TODO @@ -8,7 +8,6 @@ make left panel optional must close last container when opening a new containers move chat tabs save/load mini windows states/location when restarting the client -graphics options menu load modules from zip files manual autoload setting in module manager complete a smarter miniwindow moving/resizing diff --git a/src/otclient/core/tile.cpp b/src/otclient/core/tile.cpp index 4b025c4c..cd358617 100644 --- a/src/otclient/core/tile.cpp +++ b/src/otclient/core/tile.cpp @@ -329,6 +329,8 @@ CreaturePtr Tile::getTopCreature() else if(thing->asCreature() && !thing->asLocalPlayer()) return thing->asCreature(); } + if(!creature && !m_walkingCreatures.empty()) + creature = m_walkingCreatures.back(); return creature; }