mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* amounts of units taking actions / being an object of actions won't be shown until action ends
* provisional support for "Save" button in System Options Window * forbidden buildings will be shown as forbidden, even if there are no res / other conditions are not fulfilled * improved damage calculation formula * several minor improvements
This commit is contained in:
@ -481,6 +481,7 @@ void CGameHandler::prepareAttacked(BattleStackAttacked &bsa, CStack *def)
|
||||
|
||||
void CGameHandler::prepareAttack(BattleAttack &bat, CStack *att, CStack *def)
|
||||
{
|
||||
bat.bsa.clear();
|
||||
bat.stackAttacking = att->ID;
|
||||
std::set<BattleStackAttacked>::iterator i = bat.bsa.insert(BattleStackAttacked()).first;
|
||||
BattleStackAttacked *bsa = (BattleStackAttacked *) &*i;
|
||||
|
Reference in New Issue
Block a user