1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Partial support for Daemon Summoning.

It freezes for unknown reason, but still.

Minor fixes.
This commit is contained in:
DjWarmonger
2011-10-02 07:16:34 +00:00
parent 6fdb984799
commit 07b8f87fb7
5 changed files with 16 additions and 14 deletions

View File

@ -2192,13 +2192,11 @@ void CStack::postInit()
assert(type);
assert(getParentNodes().size());
firstHPleft = valOfBonuses(Bonus::STACK_HEALTH);
firstHPleft = MaxHealth();
shots = getCreature()->valOfBonuses(Bonus::SHOTS);
counterAttacks = 1 + valOfBonuses(Bonus::ADDITIONAL_RETALIATION);
casts = valOfBonuses(Bonus::CASTS); //TODO: set them in cr_abils.txt
state.insert(ALIVE); //alive state indication
assert(firstHPleft > 0);
}
ui32 CStack::Speed( int turn /*= 0*/ ) const