1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fixed #1124. Probably also other bugs related to two-hex creatures (or they were already resolved).

This commit is contained in:
DjWarmonger
2012-11-30 14:06:22 +00:00
parent 52242692f1
commit 7be00e97a0
2 changed files with 8 additions and 14 deletions

View File

@ -775,8 +775,7 @@ void CGameHandler::prepareAttack(BattleAttack &bat, const CStack *att, const CSt
if (!bat.shot()) //multiple-hex attack - only in meele
{
std::set<const CStack*> attackedCreatures = gs->curB->getAttackedCreatures(att, targetHex);
//TODO: get exact attacked hex for defender
std::set<const CStack*> attackedCreatures = gs->curB->getAttackedCreatures(att, targetHex); //creatures other than primary target
BOOST_FOREACH(const CStack * stack, attackedCreatures)
{