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

- Fixed and simplified Teleport casting

- Stack artifacts will now not be wearable by hero (by default)
- Fixed crash involving clone
This commit is contained in:
DjWarmonger
2012-04-18 13:24:18 +00:00
parent f9dff013eb
commit 05311dd30c
4 changed files with 44 additions and 29 deletions

View File

@ -3075,7 +3075,8 @@ bool CGameHandler::makeBattleAction( BattleAction &ba )
}
//second attack
if(curStack->valOfBonuses(Bonus::ADDITIONAL_ATTACK) > 0
if(curStack //FIXME: clones tend to dissapear during actions
&& curStack->valOfBonuses(Bonus::ADDITIONAL_ATTACK) > 0
&& !curStack->hasBonusOfType(Bonus::SHOOTER)
&& curStack->alive()
&& stackAtEnd->alive() )