1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Support for wall penalty & No Wall Penalty ability.

All creature abilities should now be more or less working.
This commit is contained in:
DjWarmonger
2011-10-20 17:41:40 +00:00
parent bdb6db2ab7
commit 10fce0025a
8 changed files with 42 additions and 25 deletions

View File

@@ -3147,7 +3147,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
CHeroHandler::SBallisticsLevelInfo sbi = VLC->heroh->ballistics[attackingHero->getSecSkillLevel(CGHeroInstance::BALLISTICS)];
int attackedPart = gs->curB->hexToWallPart(ba.destinationTile);
if(attackedPart == -1)
if(attackedPart < 0)
{
complain("catapult tried to attack non-catapultable hex!");
break;