Commit 40c44c6c authored by GuGu's avatar GuGu

Update c22333.lua

parent 7f3a1ef6
Pipeline #40336 passed with stage
in 1 minute and 24 seconds
...@@ -54,7 +54,10 @@ function s.initial_effect(c) ...@@ -54,7 +54,10 @@ function s.initial_effect(c)
e7:SetDescription(aux.Stringid(id,0)) e7:SetDescription(aux.Stringid(id,0))
e7:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW) e7:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e7:SetType(EFFECT_TYPE_QUICK_O) e7:SetType(EFFECT_TYPE_QUICK_O)
e7:SetProperty(EFFECT_FLAG_CARD_TARGET)
e7:SetCode(EVENT_FREE_CHAIN)
e7:SetRange(LOCATION_SZONE) e7:SetRange(LOCATION_SZONE)
e7:SetHintTiming(0,TIMING_END_PHASE)
e7:SetCountLimit(1) e7:SetCountLimit(1)
e7:SetCondition(s.effcon4) e7:SetCondition(s.effcon4)
e7:SetTarget(s.drtg) e7:SetTarget(s.drtg)
...@@ -101,18 +104,22 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,18 +104,22 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,3,nil) if chkc then return chkc:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and chkc:IsAbleToDeck() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,3,nil)
and Duel.IsPlayerCanDraw(tp,3) end and Duel.IsPlayerCanDraw(tp,3) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,3,3,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,3,0,LOCATION_ONFIELD+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,3,0,LOCATION_ONFIELD+LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,3) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,3)
end end
function s.drop(e,tp,eg,ep,ev,re,r,rp) function s.drop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,3,3,nil) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if #g==3 then if tg:GetCount()<=0 then return end
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.ShuffleDeck(tp) local og=Duel.GetOperatedGroup()
Duel.BreakEffect() if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then return end
Duel.Draw(tp,3,REASON_EFFECT) Duel.ShuffleDeck(tp)
end Duel.BreakEffect()
Duel.Draw(tp,3,REASON_EFFECT)
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment