Commit 66a28443 authored by Nemo Ma's avatar Nemo Ma

fix

parent 77ace7c9
...@@ -45,7 +45,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11451461,6)) e1:SetDescription(aux.Stringid(11451531,3))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -45,7 +45,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11451461,6)) e1:SetDescription(aux.Stringid(11451531,3))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -54,7 +54,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11451461,6)) e1:SetDescription(aux.Stringid(11451531,3))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -78,7 +78,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,7 +78,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11451461,6)) e1:SetDescription(aux.Stringid(11451531,3))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -40,7 +40,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11451461,6)) e1:SetDescription(aux.Stringid(11451531,3))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -41,7 +41,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end if c:GetFlagEffect(m)>0 or not c:IsRelateToEffect(e) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(11451461,6)) e1:SetDescription(aux.Stringid(11451531,3))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -87,7 +87,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if #og>0 then if #og>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
if Duel.SendtoHand(ag-og,1-tp,REASON_EFFECT) and og:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)==#sg then if Duel.SendtoHand(ag-og,1-tp,REASON_EFFECT) then Duel.ShuffleHand(1-tp) end
if og:FilterCount(Card.IsLocation,nil,LOCATION_MZONE)==#sg then
local tg=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_EXTRA,0,nil,og,tp) local tg=Duel.GetMatchingGroup(cm.xyzfilter,tp,LOCATION_EXTRA,0,nil,og,tp)
if #tg>0 then if #tg>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,2,nil) and (sa or sb) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,2,nil) and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_HAND)
...@@ -69,9 +69,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,9 +69,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
......
...@@ -34,9 +34,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -34,9 +34,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
...@@ -66,9 +66,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -66,9 +66,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.refilter,tp,0,LOCATION_ONFIELD,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.refilter,tp,0,LOCATION_ONFIELD,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,cm.refilter,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,cm.refilter,tp,0,LOCATION_ONFIELD,1,1,nil)
......
...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,2,nil) and (sa or sb) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,2,nil) and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_HAND)
...@@ -69,9 +69,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,9 +69,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,PLAYER_ALL,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,PLAYER_ALL,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
......
...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
...@@ -75,9 +75,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -75,9 +75,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(cm.thfilter2,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(cm.thfilter2,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
...@@ -85,7 +85,7 @@ end ...@@ -85,7 +85,7 @@ end
function cm.spop(e,tp,eg,ep,ev,re,r,rp) function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.thfilter2,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)>0 then if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)>0 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
......
...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,2,nil) and (sa or sb) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,2,nil) and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,tp,LOCATION_HAND)
...@@ -70,9 +70,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,9 +70,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetDecktopGroup(tp,3) local rg=Duel.GetDecktopGroup(tp,3)
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and rg:FilterCount(Card.IsAbleToRemove,nil)==3 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and rg:FilterCount(Card.IsAbleToRemove,nil)==3 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,rg,3,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,rg,3,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
......
...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -35,9 +35,9 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_ONFIELD,0,1,nil,tp) and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp) local g=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_ONFIELD,0,1,1,nil,tp)
...@@ -72,9 +72,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,9 +72,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0 local sb=c:IsLocation(LOCATION_REMOVED) and Duel.GetFlagEffect(tp,m+10)==0
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsPlayerCanDraw(tp,1) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsPlayerCanDraw(tp,1) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (sa or sb) end
if c:IsLocation(LOCATION_HAND) then if c:IsLocation(LOCATION_HAND) then
Duel.RegisterFlagEffect(tp,m+1,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+1,RESET_PHASE+PHASE_END,0,1)
elseif c:IsLocation(LOCATION_REMOVED) then elseif c:IsLocation(LOCATION_REMOVED) then
Duel.RegisterFlagEffect(tp,m+10,0,RESET_PHASE+PHASE_END,1) Duel.RegisterFlagEffect(tp,m+10,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
......
...@@ -103,9 +103,8 @@ end ...@@ -103,9 +103,8 @@ end
function cm.tdop(e,tp,eg,ep,ev,re,r,rp) function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT) Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT)
end end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thcon(e)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end return e:GetHandler():GetOriginalRace()==RACE_MACHINE
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsRace(RACE_MACHINE) and c:IsAbleToHand() return c:IsRace(RACE_MACHINE) and c:IsAbleToHand()
......
...@@ -15,7 +15,6 @@ function cm.initial_effect(c) ...@@ -15,7 +15,6 @@ function cm.initial_effect(c)
--to hand --to hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
...@@ -25,6 +24,7 @@ function cm.initial_effect(c) ...@@ -25,6 +24,7 @@ function cm.initial_effect(c)
e2:SetLabel(1) e2:SetLabel(1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e2_1=e2:Clone() local e2_1=e2:Clone()
e2_1:SetCategory(CATEGORY_TOHAND)
e2_1:SetDescription(aux.Stringid(m,1)) e2_1:SetDescription(aux.Stringid(m,1))
e2_1:SetLabel(2) e2_1:SetLabel(2)
c:RegisterEffect(e2_1) c:RegisterEffect(e2_1)
...@@ -111,30 +111,42 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,30 +111,42 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_ADJUST) e2:SetCode(EVENT_ADJUST)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cm.adjustcon)
e2:SetOperation(cm.adjustop) e2:SetOperation(cm.adjustop)
e2:SetLabelObject(c)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
end end
function cm.filter(c,e) function cm.filter(c,e)
return c:IsCanOverlay() and not tc:IsImmuneToEffect(e) return c:IsCanOverlay() and not c:IsImmuneToEffect(e)
end
function cm.adjustcon(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(cm.filter,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler(),e)
return g1 and #g1>0
end end
function cm.adjustop(e,tp,eg,ep,ev,re,r,rp) function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
if (phase==PHASE_DAMAGE and not Duel.IsDamageCalculated()) or phase==PHASE_DAMAGE_CAL then return end if (phase==PHASE_DAMAGE and not Duel.IsDamageCalculated()) or phase==PHASE_DAMAGE_CAL then return end
local c=e:GetHandler() local c=e:GetLabelObject()
if not c:IsLocation(LOCATION_MZONE) then return end
local g1=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c,e) local g1=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c,e)
if #g1>0 then if #g1>0 then
local tc=g1:GetFirst() local tc=g1:GetFirst()
local xg=Group.CreateGroup()
while tc do while tc do
tc:CancelToGrave()
local og=tc:GetOverlayGroup() local og=tc:GetOverlayGroup()
if og:GetCount()>0 then if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE) xg.Merge(og)
end end
Duel.Overlay(c,Group.FromCards(tc))
tc=g1:GetNext() tc=g1:GetNext()
end end
Duel.Readjust() if #g1>0 then
Duel.SendtoGrave(xg,REASON_RULE)
Duel.Overlay(c,g1)
Duel.Readjust()
end
end end
end end
function cm.efilter(e,te) function cm.efilter(e,te)
......
...@@ -31,8 +31,11 @@ function cm.op(e,tp) ...@@ -31,8 +31,11 @@ function cm.op(e,tp)
EFFECT_USE_EXTRA_MZONE = 0 EFFECT_USE_EXTRA_MZONE = 0
EFFECT_USE_EXTRA_SZONE = 0 EFFECT_USE_EXTRA_SZONE = 0
for tc in aux.Next(Duel.GetMatchingGroup(nil,tp,0x1ff,0x1ff,nil)) do for tc in aux.Next(Duel.GetMatchingGroup(nil,tp,0x1ff,0x1ff,nil)) do
local code=tc:GetOriginalCode() local ini=cm.initial_effect
Card.ReplaceEffect(tc,code,nil) cm.initial_effect=function() end
tc:ReplaceEffect(m,0)
cm.initial_effect=ini
tc.initial_effect(tc)
end end
function Duel.SetChainLimit(...) function Duel.SetChainLimit(...)
return return
......
...@@ -57,8 +57,8 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -57,8 +57,8 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,2,nil) local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,3,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,2,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,3,0,0)
local tc= g:GetFirst() local tc= g:GetFirst()
while tc do while tc do
Duel.SetChainLimit(cm.limit(tc)) Duel.SetChainLimit(cm.limit(tc))
......
...@@ -47,6 +47,17 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,17 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local tg1=g:SelectSubGroup(tp,aux.dncheck,false,2,2) local tg1=g:SelectSubGroup(tp,aux.dncheck,false,2,2)
Duel.SendtoHand(tg1,nil,REASON_EFFECT) Duel.SendtoHand(tg1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tg1) Duel.ConfirmCards(1-tp,tg1)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetTargetRange(1,0)
e1:SetTarget(cm.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsType(TYPE_XYZ) and c:IsLocation(LOCATION_EXTRA)
end end
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and cm.CosmosHero(c) return c:IsFaceup() and cm.CosmosHero(c)
......
...@@ -44,7 +44,7 @@ function c40009423.setcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c40009423.setcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c40009423.tgfilter,1,nil,tp) return eg:IsExists(c40009423.tgfilter,1,nil,tp)
end end
function c40009423.setfilter(c) function c40009423.setfilter(c)
return c:IsSetCard(0x137) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() and c:IsType(TYPE_CONTINUOUS) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() and c:IsType(TYPE_CONTINUOUS)
end end
function c40009423.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c40009423.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c40009423.setfilter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c40009423.setfilter(chkc) end
......
...@@ -63,7 +63,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return end if not Duel.CheckLocation(tp,LOCATION_PZONE,0) and not Duel.CheckLocation(tp,LOCATION_PZONE,1) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local res=Duel.IsPlayerCanRelease(tp) local res=Duel.IsPlayerCanRelease(tp)
local tc=Duel.SelectMatchingCard(tp,cm.penfilter,tp,LOCATION_DECK,0,1,1,nil,res):GetFirst() local tc=Duel.SelectMatchingCard(tp,cm.penfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,nil,res):GetFirst()
if tc and Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true) and tc:IsLocation(LOCATION_PZONE) then if tc and Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true) and tc:IsLocation(LOCATION_PZONE) then
local b1=tc:IsReleasableByEffect() local b1=tc:IsReleasableByEffect()
local b2=tc:IsCanAddCounter(0x1,1) local b2=tc:IsCanAddCounter(0x1,1)
......
...@@ -128,7 +128,7 @@ function cm.nameop(e,tp,eg,ep,ev,re,r,rp) ...@@ -128,7 +128,7 @@ function cm.nameop(e,tp,eg,ep,ev,re,r,rp)
e5:SetCode(EFFECT_ACTIVATE_COST) e5:SetCode(EFFECT_ACTIVATE_COST)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetTargetRange(1,1) e5:SetTargetRange(1,0)
e5:SetLabelObject(e1) e5:SetLabelObject(e1)
e5:SetCondition(cm.efcon) e5:SetCondition(cm.efcon)
e5:SetTarget(cm.costtg) e5:SetTarget(cm.costtg)
...@@ -210,7 +210,7 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -210,7 +210,7 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.costtg(e,te,tp) function cm.costtg(e,te,tp)
e:SetLabelObject(te) e:SetLabelObject(te)
return te==e:GetLabelObject() return te==e:GetLabelObject() and te:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
function cm.costop(e,tp,eg,ep,ev,re,r,rp) function cm.costop(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject() local te=e:GetLabelObject()
......
...@@ -82,7 +82,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
else else
local mg=mg1:Filter(Card.IsCanBeRitualMaterial,tc,tc) local mg=mg1:Filter(Card.IsCanBeRitualMaterial,tc,tc)
mg:AddCard(mg2) mg:Merge(mg2)
if tc.mat_filter then if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp) mg=mg:Filter(tc.mat_filter,tc,tp)
else else
......
...@@ -36,9 +36,12 @@ function c72411740.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,9 +36,12 @@ function c72411740.operation(e,tp,eg,ep,ev,re,r,rp)
local sg2=Group.Filter(sg,Card.IsType,nil,TYPE_TRAP):GetCount() local sg2=Group.Filter(sg,Card.IsType,nil,TYPE_TRAP):GetCount()
local sg3=Group.Filter(sg,Card.IsType,nil,TYPE_MONSTER):GetCount() local sg3=Group.Filter(sg,Card.IsType,nil,TYPE_MONSTER):GetCount()
local ct=Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD) local ct=Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD)
if sg1>1 then Duel.Draw(tp,3,REASON_EFFECT) end if sg1>1 then
Duel.BreakEffect()
Duel.Draw(tp,3,REASON_EFFECT) end
if sg2>1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>1 if sg2>1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
and Duel.IsExistingMatchingCard(c72411740.filter,tp,LOCATION_DECK,0,2,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,59822133) then and Duel.IsExistingMatchingCard(c72411740.filter,tp,LOCATION_DECK,0,2,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,59822133) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c72411740.filter,tp,LOCATION_DECK,0,2,2,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c72411740.filter,tp,LOCATION_DECK,0,2,2,nil,e,tp)
if g:GetCount()==2 then if g:GetCount()==2 then
...@@ -46,6 +49,7 @@ function c72411740.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,6 +49,7 @@ function c72411740.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if sg3>1 and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) then if sg3>1 and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) then
Duel.BreakEffect()
local dg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local dg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,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