ys = ys or {} slot0 = ys slot1 = class("BattleBuffAddAttrConvert", slot0.Battle.BattleBuffAddAttr) slot0.Battle.BattleBuffAddAttrConvert = slot1 slot1.__name = "BattleBuffAddAttrConvert" function slot1.Ctor(slot0, slot1) uv0.super.Ctor(slot0, slot1) end function slot1.GetEffectType(slot0) return uv0.Battle.BattleBuffEffect.FX_TYPE_MOD_ATTR end function slot1.SetArgs(slot0, slot1, slot2) slot0._group = slot0._tempData.arg_list.group or slot2:GetID() slot0._attr = slot0._tempData.arg_list.attr slot0._convertAttr = slot0._tempData.arg_list.convertAttr slot0._convertAttrValue = uv0.Battle.BattleAttr.GetBase(slot1, slot0._convertAttr) slot0._convertRate = slot0._tempData.arg_list.convertRate slot0._number = (slot0._tempData.arg_list.number or 0) + slot0._convertAttrValue * slot0._convertRate slot0._numberBase = slot0._number end