This commit is contained in:
aozhiwei 2022-10-11 20:16:05 +08:00
parent 893a7df167
commit 146fbcef9a

View File

@ -320,7 +320,12 @@ int SkillHelper::GetYmczReserveDistance(const MetaData::Skill* skill_meta)
float SkillHelper::GetYmczDmg(Creature* sender, Creature* target, const MetaData::Skill* skill_meta) float SkillHelper::GetYmczDmg(Creature* sender, Creature* target, const MetaData::Skill* skill_meta)
{ {
return 0; float finaly_dmg =
(skill_meta->number_meta->float_ratio +
skill_meta->number_meta->float_ratio2 *
sender->GetBattleContext()->GetHeroTotalAtk()) *
(1 - target->GetBattleContext()->GetDef() / (target->GetBattleContext()->GetDef() + 400));
return finaly_dmg;
} }
bool SkillHelper::ProcBulletDmg(Bullet* bullet, Creature* target, float& finaly_dmg) bool SkillHelper::ProcBulletDmg(Bullet* bullet, Creature* target, float& finaly_dmg)