--迎春的弹幕开花宣言 function c33700914.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --adjust local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetCode(EVENT_ADJUST) e2:SetRange(LOCATION_SZONE) e2:SetOperation(c33700914.adjustop) c:RegisterEffect(e2) --recover local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(33700914,0)) e3:SetCategory(CATEGORY_RECOVER) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetRange(LOCATION_SZONE) e3:SetCode(EVENT_BATTLE_DAMAGE) e3:SetCost(c33700914.reccost) e3:SetCondition(c33700914.reccon) e3:SetTarget(c33700914.rectg) e3:SetOperation(c33700914.recop) c:RegisterEffect(e3) --atk local e4=Effect.CreateEffect(c) e4:SetDescription(aux.Stringid(33700914,1)) e4:SetCategory(CATEGORY_ATKCHANGE) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetRange(LOCATION_SZONE) e4:SetCode(EVENT_BATTLE_DAMAGE) e4:SetCost(c33700914.reccost) e4:SetCondition(c33700914.reccon2) e4:SetTarget(c33700914.atktg) e4:SetOperation(c33700914.atkop) c:RegisterEffect(e4) end function c33700914.adjustop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(c33700914.cfilter,tp,LOCATION_ONFIELD,0,nil) if #g>=2 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=0 then Duel.Destroy(g,REASON_EFFECT) end end function c33700914.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetCard(eg:GetFirst()) end function c33700914.atkop(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.GetFirstTarget() if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2) e1:SetValue(ev) tc:RegisterEffect(e1) end function c33700914.reccost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:GetFlagEffect(33700914)==0 end c:RegisterFlagEffect(33700914,RESET_CHAIN,0,1) end function c33700914.reccon2(e,tp,eg,ep,ev,re,r,rp) return ep~=tp and eg:GetFirst():IsControler(tp) and Duel.IsExistingMatchingCard(c33700914.cfilter,tp,LOCATION_ONFIELD,0,2,nil) end function c33700914.cfilter(c) return c:IsCode(33700914) and c:IsFaceup() end function c33700914.reccon(e,tp,eg,ep,ev,re,r,rp) return ep~=tp and eg:GetFirst():IsControler(tp) end function c33700914.rectg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(ev) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev) end function c33700914.recop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) end