mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
- Added missing abilities for devil & ghost dragon
- Stack affected by Berserk should not try to attack itself Neither of these can be actually seen in game duo to more general engine bugs :/
This commit is contained in:
@ -684,7 +684,7 @@ BattleInfo * BattleInfo::setupBattle( int3 tile, ETerrainType terrain, BFieldTyp
|
||||
curB->tacticDistance = 0;
|
||||
|
||||
|
||||
// workaround bonuses affecting only enemy
|
||||
// workaround bonuses affecting only enemy - DOES NOT WORK
|
||||
for(int i = 0; i < 2; i++)
|
||||
{
|
||||
TNodes nodes;
|
||||
@ -883,8 +883,6 @@ void CStack::postInit()
|
||||
assert(type);
|
||||
assert(getParentNodes().size());
|
||||
|
||||
//FIXME: the following should take into account ONLY_ENEMY_ARMY bonus range
|
||||
|
||||
firstHPleft = MaxHealth();
|
||||
shots = getCreature()->valOfBonuses(Bonus::SHOTS);
|
||||
counterAttacks = 1 + valOfBonuses(Bonus::ADDITIONAL_RETALIATION);
|
||||
|
Reference in New Issue
Block a user