This commit is contained in:
aozhiwei 2022-10-28 15:35:05 +08:00
parent 8ff4411274
commit fabc72dffa

View File

@ -1734,10 +1734,12 @@ void Creature::UpdatePoisoning()
if (room->IsPveRoom()) {
dmg = room->GetGasData().new_area_meta->i->hurt();
}
dmg = dmg * GetMaxHP();
dmg *= 1 + GetAbility()->GetAttrRate(kHAT_PoisoningReduction);
if (room->IsPveRoom()) {
dmg = std::max(1.0f, dmg);
} else {
dmg = std::max(10.0f, dmg);
dmg = std::max(1.0f, dmg);
}
DecHP(dmg, VP_Gas, TEXT("battle_server_killer_gas", "毒圈"), VW_Gas);
if (dead) {