1
This commit is contained in:
parent
6b470c5fd3
commit
ca612deb59
@ -818,6 +818,9 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
||||
owner_.Get()->SendDebugMsg("数值: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
|
||||
}
|
||||
}
|
||||
if (owner_.Get()->GetHeroMeta()->id() == 9011) {
|
||||
int i = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
float vEbc = 1.0f;
|
||||
@ -852,7 +855,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
|
||||
float vNormalDamageTakenRateIn = target->GetAbility()->GetAttr(kHAT_vNormalDamageTakenRateIn);
|
||||
float vDmg = vAttack * vBullet / BDM * (1 + vNormalDamageDealtRateIn) * ( 1 + vNormalDamageTakenRateIn);
|
||||
if (owner_.Get()->GetAbility()->HasAttr(kHVAT_DirectAtk)) {
|
||||
vDmg = owner_.Get()->GetAbility()->GetAttr(kHVAT_DirectAtk) / BDM * (1 + vNormalDamageDealtRateIn) * ( 1 + vNormalDamageTakenRateIn);
|
||||
vDmg = owner_.Get()->GetAbility()->GetAttr(kHVAT_DirectAtk) * vBullet / BDM * (1 + vNormalDamageDealtRateIn) * ( 1 + vNormalDamageTakenRateIn);
|
||||
}
|
||||
|
||||
float DDR = 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user