mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
Fixed 625, probably also 628 and 568. Minor fixes.
This commit is contained in:
parent
3b0f0a7a4e
commit
d823b18c72
@ -6545,10 +6545,11 @@ void CArmedInstance::randomizeArmy(int type)
|
||||
|
||||
void CArmedInstance::getParents(TCNodes &out, const CBonusSystemNode *root /*= NULL*/) const
|
||||
{
|
||||
/* //already given via PlayerState->getBonuses();
|
||||
const PlayerState *p = cb->getPlayerState(tempOwner);
|
||||
if (p && p != root)
|
||||
out.insert(p); //hero always inherits bonuses from player
|
||||
|
||||
out.insert(p);
|
||||
*/
|
||||
out.insert(&cb->gameState()->globalEffects); //global effects are always active I believe
|
||||
|
||||
if(battle)
|
||||
|
@ -3613,7 +3613,7 @@ ui32 BattleInfo::calculateSpellDmg( const CSpell * sp, const CGHeroInstance * ca
|
||||
ret /= 100;
|
||||
}
|
||||
}
|
||||
calculateSpellBonus(ret, sp, caster, affectedCreature);
|
||||
ret = calculateSpellBonus(ret, sp, caster, affectedCreature);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user