mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Bug fix for berserk: fixed the issue that the berserk affected stack
won't attack the nearest live stack.
This commit is contained in:
parent
8af4d97664
commit
9ec9cffe9b
@ -1366,7 +1366,7 @@ std::pair<const CStack *, BattleHex> CBattleInfoCallback::getNearestStack(const
|
||||
for(BattleHex hex : avHexes)
|
||||
if(CStack::isMeleeAttackPossible(closest, st, hex))
|
||||
{
|
||||
DistStack hlp = {reachability.distances[st->position], hex, st};
|
||||
DistStack hlp = {reachability.distances[hex], hex, st};
|
||||
stackPairs.push_back(hlp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user