ys = ys or {} slot0 = ys slot0.Battle.BattleBuffOverrideBullet = class("BattleBuffOverrideBullet", slot0.Battle.BattleBuffEffect) slot0.Battle.BattleBuffOverrideBullet.__name = "BattleBuffOverrideBullet" slot1 = slot0.Battle.BattleBuffOverrideBullet function slot1.Ctor(slot0, slot1) uv0.super.Ctor(slot0, slot1) end function slot1.SetArgs(slot0, slot1, slot2) slot0._bulletType = slot0._tempData.arg_list.bullet_type slot0._override = slot0._tempData.arg_list.override end function slot1.onBulletCreate(slot0, slot1, slot2, slot3) if slot3._bullet:GetType() == slot0._bulletType then slot0:overrideBullet(slot4) end end function slot1.overrideBullet(slot0, slot1) for slot5, slot6 in pairs(slot0._override) do if slot5 == "diverFilter" then slot1:SetDiverFilter(slot6) slot1:ResetCldSurface() end end end