This commit is contained in:
aozhiwei 2023-03-09 12:15:17 +08:00
parent d6985c1063
commit 12db6a6679
2 changed files with 3 additions and 3 deletions

View File

@ -548,7 +548,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
float crit = g_calc_dmg_context.is_crit ? GetCritRate(bullet) : 0;
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);
finaly_dmg *= (1 + owner_->GetAbility()->GetDmgAddition());
finaly_dmg *= (1 + owner_.Get()->GetAbility()->GetDmgAddition());
finaly_dmg *= (1 - target->GetAbility()->GetDmgRuduce());
#if 1
finaly_dmg *= (1 + bullet->GetStrengthenWall());

View File

@ -3511,15 +3511,15 @@ void Human::ProcGemStoneItem(AddItemDTO& dto)
(
GetWeakPtrRef(),
kPropHp,
GetHP(),
0,
GetHP(),
true);
room->frame_event.AddPropChg
(
GetWeakPtrRef(),
kPropMaxHp,
GetMaxHP(),
0,
GetMaxHP(),
true);
dto.handled = true;
}