mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Refactoring of setBattleCursor & fromWhichHexAttack methods
This commit is contained in:
@ -864,6 +864,10 @@ void BattleStacksController::updateHoveredStacks()
|
||||
|
||||
std::vector<const CStack *> BattleStacksController::selectHoveredStacks()
|
||||
{
|
||||
// only allow during our turn - do not try to highlight creatures while they are in the middle of actions
|
||||
if (!activeStack)
|
||||
return {};
|
||||
|
||||
auto hoveredHex = owner.fieldController->getHoveredHex();
|
||||
|
||||
if (!hoveredHex.isValid())
|
||||
|
Reference in New Issue
Block a user