This commit is contained in:
aozhiwei 2021-09-02 15:09:55 +08:00
parent bf3047febd
commit 45e5c2b80e

View File

@ -2524,9 +2524,7 @@ void Creature::ProcOnceChgAttrBuff(MetaData::Buff* buff_meta)
if (buff_meta->param3 > 0) {
AddHp(buff_meta->param3);
} else if (buff_meta->param3 < 0) {
#if 01
DecHP(std::abs(buff_meta->param3), 1, "", 1);
#endif
DecHP(std::abs(buff_meta->param3), VP_Buff, "", buff_meta->i->buff_id());
}
} else if (buff_meta->int_param2 == 2) {
//百分比
@ -2534,9 +2532,7 @@ void Creature::ProcOnceChgAttrBuff(MetaData::Buff* buff_meta)
if (chg_hp > 0.0001f) {
AddHp(chg_hp);
} else if (chg_hp < 0.0001f){
#if 1
DecHP(std::abs(chg_hp), 1, "", 1);
#endif
DecHP(std::abs(chg_hp), VP_Buff, "", buff_meta->i->buff_id());
}
}
SyncAroundPlayers(__FILE__, __LINE__, __func__);