--Gelatyna Tattica --Scripted by: XGlitchy30 local s,id=GetID() function s.initial_effect(c) --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCountLimit(2,id) e1:SetCondition(s.drawcon) e1:SetTarget(s.drawtg) e1:SetOperation(s.drawop) c:RegisterEffect(e1) end function s.drawcon(e,tp,eg,ep,ev,re,r,rp) if not re then return false end return e:GetHandler():GetReason()==REASON_SPSUMMON and re:GetHandler() and re:GetHandler():IsSetCard(0x296) end function s.spf(c,e,tp) return c:IsCode(id) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.drawtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function s.drawop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) if Duel.Draw(p,d,REASON_EFFECT)~=0 then local dc=Duel.GetOperatedGroup():GetFirst() if dc and dc:IsLocation(LOCATION_HAND) and dc:IsControler(tp) and dc:IsSetCard(0x296) and not dc:IsPublic() and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then Duel.ConfirmCards(1-tp,dc) Duel.Draw(tp,1,REASON_EFFECT) Duel.ShuffleHand(tp) end end end