Commit ab23cdae authored by POLYMER's avatar POLYMER

fix

parent fc159fbf
......@@ -57,9 +57,9 @@ function c11513054.tdop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Select(tp,5,5,nil)
Duel.ConfirmCards(1-tp,sg)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
if og:FilterCount(Card.IsSetCard,nil,0x1115)==5 and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(11513054,0)) then
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
......
......@@ -46,6 +46,6 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:Select(tp,ct-1,ct-1,nil)
Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.SendtoDeck(sg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
\ No newline at end of file
......@@ -33,7 +33,7 @@ end
function c28335405.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=Duel.SelectMatchingCard(tp,c28335405.center,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
if tc:GetCount()>0 then
if tc then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
if tc:IsCode(28315548) and Duel.IsExistingMatchingCard(c28335405.tgfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28335405,0)) then
......
......@@ -6,8 +6,6 @@ function c91000338.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,91000338)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_EXTRA,0)==0 end)
c:RegisterEffect(e1)
--xx
local e2=Effect.CreateEffect(c)
......@@ -17,7 +15,7 @@ function c91000338.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,91000338*2)
e2:SetCondition(function(e)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_EXTRA,0)==0 and e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)end)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)end)
e2:SetTarget(c91000338.ritg)
e2:SetOperation(c91000338.riops)
c:RegisterEffect(e2)
......@@ -37,8 +35,6 @@ function c91000338.initial_effect(c)
e4:SetCode(EVENT_RELEASE)
e4:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e4:SetCountLimit(1,19100338)
e4:SetCondition(function(e)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_EXTRA,0)==0 end)
e4:SetOperation(c91000338.riop)
c:RegisterEffect(e4)
--special summon cost
......@@ -134,14 +130,17 @@ function c91000338.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_HAND and re:IsActiveType(TYPE_MONSTER)
end
function c91000338.ritg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end
function c91000338.fitd(c)
return c:IsLevel(10) and c:IsReleasableByEffect()
end
function c91000338.riops(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(Card.IsReleasable,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,Card.IsReleasable,tp,LOCATION_MZONE,0,1,1,nil)
if Duel.IsExistingMatchingCard(c91000338.fitd,tp,LOCATION_MZONE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c91000338.fitd,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_EFFECT)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
......
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