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