1
This commit is contained in:
parent
b840a1c3c7
commit
ba648a0293
@ -497,6 +497,8 @@ float BattleDataContext::CalcDmg(Creature* target, Bullet* bullet)
|
||||
float crit = IsCrit(bullet) ? GetCritRate(bullet) : 0;
|
||||
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
|
||||
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);
|
||||
finaly_dmg *= (1 + target->GetAbility()->GetDmgAddition());
|
||||
finaly_dmg *= (1 - target->GetAbility()->GetDmgRuduce());
|
||||
#if 1
|
||||
finaly_dmg *= (1 + bullet->strengthen_wall);
|
||||
#endif
|
||||
@ -515,6 +517,7 @@ float BattleDataContext::CalcDmg(Creature* target, Bullet* bullet)
|
||||
owner_.Get()->SendDebugMsg(data);
|
||||
}
|
||||
#endif
|
||||
finaly_dmg = std::max(1.0f, finaly_dmg);
|
||||
return finaly_dmg;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user