From 00efade0a1fc7374d04c784f10587b5db77deef1 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sun, 19 Jan 2020 20:15:01 +0200 Subject: [PATCH] fix invisible monsters shooting with target use --- src/spells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spells.cpp b/src/spells.cpp index 52d0243..7974680 100644 --- a/src/spells.cpp +++ b/src/spells.cpp @@ -1820,7 +1820,7 @@ bool RuneSpell::executeUse(Player* player, Item* item, const Position&, Thing* t if (target == nullptr) { Tile* toTile = g_game.map.getTile(toPosition); if (toTile) { - const Creature* visibleCreature = toTile->getBottomVisibleCreature(player); + const Creature* visibleCreature = toTile->getTopCreature(); if (visibleCreature) { var.number = visibleCreature->getID(); }