1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Earthquake spell: do not target already destroyed sections

This commit is contained in:
Ivan Savenko
2022-12-08 18:48:08 +02:00
parent 155f776ae8
commit b3deea24e0
2 changed files with 55 additions and 23 deletions

View File

@ -4920,13 +4920,13 @@ bool CGameHandler::makeBattleAction(BattleAction &ba)
switch(attackedPart)
{
case EWallPart::KEEP:
posRemove = -2;
posRemove = BattleHex::CASTLE_CENTRAL_TOWER;
break;
case EWallPart::BOTTOM_TOWER:
posRemove = -3;
posRemove = BattleHex::CASTLE_BOTTOM_TOWER;
break;
case EWallPart::UPPER_TOWER:
posRemove = -4;
posRemove = BattleHex::CASTLE_UPPER_TOWER;
break;
}