This commit is contained in:
aozhiwei 2023-04-14 14:22:37 +08:00
parent a76e7cf2ea
commit 104846bc6a
2 changed files with 4 additions and 3 deletions

View File

@ -154,7 +154,8 @@ void CallFuncBuff::Activate()
break; break;
case BuffCallFunc_e::kRefreshHp: case BuffCallFunc_e::kRefreshHp:
{ {
owner->SetHP(owner->GetMaxHP()); owner->SetMaxHP(owner->GetBattleContext()->GetMaxHP());
owner->SetHP(owner->GetBattleContext()->GetMaxHP());
owner->room->frame_event.AddHpChg(owner->GetWeakPtrRef()); owner->room->frame_event.AddHpChg(owner->GetWeakPtrRef());
} }
break; break;

View File

@ -16,12 +16,12 @@ void ModifyBaseAttrBuff::Activate()
switch (meta->_int_buff_param4) { switch (meta->_int_buff_param4) {
case 1: case 1:
{ {
abs_handle_ = owner->GetAbility()->AddAttrAbs(attr_id, value); rate_handle_ = owner->GetAbility()->AddAttrRate(attr_id, value);
} }
break; break;
case 2: case 2:
{ {
rate_handle_ = owner->GetAbility()->AddAttrRate(attr_id, value); abs_handle_ = owner->GetAbility()->AddAttrAbs(attr_id, value);
} }
break; break;
default: default: