diff --git a/server/gameserver/buff/modify_base_attr.cc b/server/gameserver/buff/modify_base_attr.cc index c7aac590..6a500894 100644 --- a/server/gameserver/buff/modify_base_attr.cc +++ b/server/gameserver/buff/modify_base_attr.cc @@ -16,12 +16,12 @@ void ModifyBaseAttrBuff::Activate() switch (meta->_int_buff_param4) { case 1: { - owner->GetAbility()->AddAttrAbs(attr_id, value); + abs_handle_ = owner->GetAbility()->AddAttrAbs(attr_id, value); } break; case 2: { - owner->GetAbility()->AddAttrRate(attr_id, value); + rate_handle_ = owner->GetAbility()->AddAttrRate(attr_id, value); } break; default: diff --git a/server/gameserver/buff/modify_grow_attr.cc b/server/gameserver/buff/modify_grow_attr.cc index c248655a..f1282eca 100644 --- a/server/gameserver/buff/modify_grow_attr.cc +++ b/server/gameserver/buff/modify_grow_attr.cc @@ -11,24 +11,22 @@ void ModifyGrowAttrBuff::Activate() { int attr_id = meta->_int_buff_param1; - if (IsValidHumanAttr(attr_id)) { - float value = meta->GetBuffParam2(this); - switch (meta->_int_buff_param3) { - case 1: - { - owner->GetAbility()->AddAttrAddition(attr_id, value); - } - break; - case 2: - { - owner->GetAbility()->AddAttrRuduce(attr_id, value); - } - break; - default: - { - } - break; + float value = meta->GetBuffParam2(this); + switch (meta->_int_buff_param3) { + case 1: + { + add_handle_ = owner->GetAbility()->AddAttrAddition(attr_id, value); } + break; + case 2: + { + ruduce_handle_ = owner->GetAbility()->AddAttrRuduce(attr_id, value); + } + break; + default: + { + } + break; } }