Commit 205b8cfe authored by POLYMER's avatar POLYMER

fix

parent 4a05bbb5
......@@ -37,6 +37,7 @@ end
function c9910063.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
Duel.AdjustAll()
local g=Duel.GetMatchingGroup(c9910063.linkfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(9910063,1)) then
Duel.BreakEffect()
......
......@@ -35,6 +35,7 @@ end
function c9910078.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() and Duel.ChangePosition(c,POS_FACEDOWN_DEFENSE)~=0 then
Duel.AdjustAll()
local g=Duel.GetMatchingGroup(c9910078.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(9910078,0)) then
Duel.BreakEffect()
......
......@@ -36,6 +36,7 @@ function c9910214.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0
and e:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.GetCurrentChain()>2 then
Duel.AdjustAll()
local g=Duel.GetMatchingGroup(c9910214.linkfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(9910214,0)) then
Duel.BreakEffect()
......
......@@ -41,6 +41,7 @@ function c9910217.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local count=0
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
Duel.AdjustAll()
local g=Duel.GetMatchingGroup(c9910217.linkfilter,tp,LOCATION_EXTRA,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(9910217,0)) then
Duel.BreakEffect()
......
......@@ -37,6 +37,7 @@ end
function c9910352.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then return end
Duel.AdjustAll()
if Duel.IsExistingMatchingCard(c9910352.sumfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(9910352,0)) then
Duel.BreakEffect()
......
......@@ -86,14 +86,16 @@ function c9910579.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeChainOperation(ct-1,c9910579.repop)
end
end
if e:GetLabel()==1 and #g2>0 and Duel.ChangePosition(g2,POS_FACEDOWN_DEFENSE)>0
and Duel.IsExistingMatchingCard(c9910579.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
if e:GetLabel()==1 and #g2>0 and Duel.ChangePosition(g2,POS_FACEDOWN_DEFENSE)>0 then
Duel.AdjustAll()
if Duel.IsExistingMatchingCard(c9910579.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
and Duel.SelectYesNo(tp,aux.Stringid(9910579,3)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c9910579.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
function c9910579.repop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.SelectMatchingCard(tp,c9910579.thfilter,tp,0,LOCATION_MZONE,1,1,nil)
......
......@@ -56,6 +56,7 @@ function c9910735.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg)
if Duel.Destroy(sg,REASON_EFFECT)==0 then return end
local og=Duel.GetOperatedGroup()
Duel.AdjustAll()
if #og>0 and og:IsExists(c9910735.cfilter2,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c9910735.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
and Duel.SelectYesNo(tp,aux.Stringid(9910735,1)) then
......
......@@ -79,12 +79,14 @@ function c9911452.spfilter(c,e,tp)
end
function c9911452.rlop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if Duel.Release(g,REASON_EFFECT)~=0 and e:GetLabel()==1
and Duel.IsExistingMatchingCard(c9911452.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
if Duel.Release(g,REASON_EFFECT)~=0 and e:GetLabel()==1 then
Duel.AdjustAll()
if Duel.IsExistingMatchingCard(c9911452.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
and Duel.SelectYesNo(tp,aux.Stringid(9911452,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c9911452.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_ATTACK)
end
end
end
......@@ -70,6 +70,7 @@ function c9911463.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.HintSelection(g)
if Duel.Release(g,REASON_EFFECT)~=0 then
Duel.AdjustAll()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c9911463.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
if sg:GetCount()>0 then
......
......@@ -58,6 +58,7 @@ end
function c9911464.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) and tc:IsLocation(LOCATION_REMOVED) then
Duel.AdjustAll()
local p=tc:GetControler()
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c9911464.spfilter),p,LOCATION_HAND+LOCATION_GRAVE,0,nil,e,p)
if Duel.GetLocationCount(p,LOCATION_MZONE)>0 and #g>0 and Duel.SelectYesNo(p,aux.Stringid(9911464,0)) then
......
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