--The Peach Beach function c69010.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --atk/def local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_FZONE) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x6969)) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetValue(300) c:RegisterEffect(e2) local e3=e2:Clone() e3:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e3) local e4=Effect.CreateEffect(c) e4:SetCategory(CATEGORY_RECOVER) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetRange(LOCATION_FZONE) e4:SetCountLimit(1,69010) e4:SetTarget(c69010.rectg) e4:SetOperation(c69010.recop) c:RegisterEffect(e4) local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(64400161,1)) e5:SetCategory(CATEGORY_TOGRAVE) e5:SetType(EFFECT_TYPE_IGNITION) e5:SetRange(LOCATION_FZONE) e5:SetCondition(c69010.descon) e5:SetCost(c69010.descost) e5:SetTarget(c69010.destg) e5:SetOperation(c69010.desop) c:RegisterEffect(e5) end function c69010.filter1(c) return c:IsFaceup() and c:IsSetCard(0x6969) end function c69010.rectg(e,tp,eg,ep,ev,re,r,rp,chk) local rec=Duel.GetMatchingGroupCount(c69010.filter1,tp,LOCATION_MZONE,0,nil)*300 if chk==0 then return rec>0 end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(rec) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,rec) end function c69010.recop(e,tp,eg,ep,ev,re,r,rp) local rec=Duel.GetMatchingGroupCount(c69010.filter1,tp,LOCATION_MZONE,0,nil)*300 local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Recover(p,rec,REASON_EFFECT) end function c69010.descon(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(c69010.cfilter,tp,LOCATION_MZONE,0,nil) return g:GetClassCount(Card.GetCode)>=5 and (Duel.GetLP(tp)-4000)>=Duel.GetLP(1-tp) end function c69010.descost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function c69010.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,g:GetCount(),0,0) end function c69010.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) Duel.SendtoGrave(g,REASON_EFFECT) end