1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

* animation of catapult

* stacks won't be reversed when attacked by turrets
This commit is contained in:
mateuszb
2009-09-24 13:44:55 +00:00
parent 307c20e7dc
commit 9a1669b926
7 changed files with 61 additions and 22 deletions

View File

@@ -2602,8 +2602,9 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
continue;
CatapultAttack ca; //package for clients
std::pair<ui8, ui8> attack;
attack.first = attackedPart;
std::pair< std::pair< ui8, si16 >, ui8> attack;
attack.first.first = attackedPart;
attack.first.second = ba.destinationTile;
attack.second = 0;
int chanceForHit = 0;
@@ -2672,7 +2673,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
sendAndApply(&bsr);
}
}
ca.byCatapult = true;
ca.attacker = ba.stackNumber;
ca.attackedParts.insert(attack);
sendAndApply(&ca);