Commit 80221721 authored by Nemo Ma's avatar Nemo Ma

fix

parent 5c595c68
......@@ -81,7 +81,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local tp=c:GetControler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and Duel.IsExistingMatchingCard(cm.srfilter,tp,LOCATION_DECK,0,1,nil,tc:GetCode()) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(cm.srfilter,tp,LOCATION_DECK,0,1,nil,tc:GetCode()) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.srfilter,tp,LOCATION_DECK,0,1,1,nil,tc:GetCode())
......
......@@ -81,7 +81,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local tp=c:GetControler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_MONSTER) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_MONSTER) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,Card.IsType,tp,0,LOCATION_ONFIELD,1,1,nil,TYPE_MONSTER)
......
......@@ -82,7 +82,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local tp=c:GetControler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil)
......
......@@ -77,7 +77,7 @@ function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local tp=c:GetControler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and Duel.IsExistingMatchingCard(cm.disfilter,tp,0,LOCATION_ONFIELD,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
if Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 and tc:IsSetCard(0xf3d) and tc:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(cm.disfilter,tp,0,LOCATION_ONFIELD,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectMatchingCard(tp,cm.disfilter,tp,0,LOCATION_ONFIELD,1,2,nil)
......
......@@ -44,23 +44,23 @@ end
function c33200070.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
if Duel.IsExistingMatchingCard(c33200070.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,tc)
and aux.MustMaterialCheck(tc,tp,EFFECT_MUST_BE_XMATERIAL) and
Duel.GetLocationCountFromEx(tp,tp,tc,TYPE_XYZ)>0 and Duel.SelectYesNo(tp,aux.Stringid(33200070,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c33200070.filter2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc)
local sc=g:GetFirst()
if sc then
local mg=tc:GetOverlayGroup()
if mg:GetCount()~=0 then
Duel.Overlay(sc,mg)
if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) and
Duel.IsExistingMatchingCard(c33200070.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,tc)
and aux.MustMaterialCheck(tc,tp,EFFECT_MUST_BE_XMATERIAL) and
Duel.GetLocationCountFromEx(tp,tp,tc,TYPE_XYZ)>0 and Duel.SelectYesNo(tp,aux.Stringid(33200070,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c33200070.filter2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc)
local sc=g:GetFirst()
if sc then
local mg=tc:GetOverlayGroup()
if mg:GetCount()~=0 then
Duel.Overlay(sc,mg)
end
sc:SetMaterial(Group.FromCards(tc))
Duel.Overlay(sc,Group.FromCards(tc))
Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)
sc:CompleteProcedure()
end
sc:SetMaterial(Group.FromCards(tc))
Duel.Overlay(sc,Group.FromCards(tc))
Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)
sc:CompleteProcedure()
end
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