Commit 081884b6 authored by POLYMER's avatar POLYMER

fix

parent cddc1cde
...@@ -59,7 +59,7 @@ end ...@@ -59,7 +59,7 @@ end
function c28314946.recop(e,tp,eg,ep,ev,re,r,rp) function c28314946.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetClassCount(Card.GetAttribute)>=3 and Duel.IsExistingMatchingCard(c28314946.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28314946,2)) then if aux.GetAttributeCount(g)>=3 and Duel.IsExistingMatchingCard(c28314946.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28314946,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(tp,c28314946.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) local tg=Duel.SelectMatchingCard(tp,c28314946.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
Duel.SendtoHand(tg,nil,REASON_EFFECT) Duel.SendtoHand(tg,nil,REASON_EFFECT)
......
...@@ -69,7 +69,7 @@ function c28315544.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c28315544.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetClassCount(Card.GetAttribute)>=3 and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28315544,2)) then if aux.GetAttributeCount(g)>=3 and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(28315544,2)) then
local tg=Duel.GetMatchingGroup(Card.IsAbleToHand,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local tg=Duel.GetMatchingGroup(Card.IsAbleToHand,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=tg:SelectSubGroup(tp,c28315544.gcheck,false,1,2,tp) local sg=tg:SelectSubGroup(tp,c28315544.gcheck,false,1,2,tp)
......
...@@ -76,7 +76,7 @@ function c28316048.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function c28316048.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetClassCount(Card.GetAttribute)>=3 and Duel.IsExistingMatchingCard(c28316048.spfilter,tp,0xff,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(28316048,2)) then if aux.GetAttributeCount(g)>=3 and Duel.IsExistingMatchingCard(c28316048.spfilter,tp,0xff,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(28316048,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=Duel.SelectMatchingCard(tp,c28316048.spfilter,tp,0xff,0,1,1,nil,e,tp):GetFirst() local sc=Duel.SelectMatchingCard(tp,c28316048.spfilter,tp,0xff,0,1,1,nil,e,tp):GetFirst()
for _,sumtype in pairs({0,SUMMON_TYPE_FUSION,SUMMON_TYPE_SYNCHRO,SUMMON_TYPE_XYZ,SUMMON_TYPE_LINK,SUMMON_TYPE_SPECIAL,SUMMON_VALUE_SELF}) do for _,sumtype in pairs({0,SUMMON_TYPE_FUSION,SUMMON_TYPE_SYNCHRO,SUMMON_TYPE_XYZ,SUMMON_TYPE_LINK,SUMMON_TYPE_SPECIAL,SUMMON_VALUE_SELF}) do
......
...@@ -81,7 +81,7 @@ function c28316345.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +81,7 @@ function c28316345.recop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetClassCount(Card.GetAttribute)>=3 and Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(c28316345.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(28316345,2)) then if aux.GetAttributeCount(g)>=3 and Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(c28316345.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(28316345,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c28316345.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local sg=Duel.SelectMatchingCard(tp,c28316345.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if sg:GetCount()>0 then if sg:GetCount()>0 then
......
...@@ -68,7 +68,7 @@ function c28316849.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c28316849.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetClassCount(Card.GetAttribute)>=3 and Duel.GetMZoneCount(tp)>0 if aux.GetAttributeCount(g)>=3 and Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(c28316849.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(28316849,2)) then and Duel.IsExistingMatchingCard(c28316849.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(28316849,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=Duel.SelectMatchingCard(tp,c28316849.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() local sc=Duel.SelectMatchingCard(tp,c28316849.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst()
......
...@@ -36,7 +36,7 @@ end ...@@ -36,7 +36,7 @@ end
function c28321714.activate(e,tp,eg,ep,ev,re,r,rp) function c28321714.activate(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local ct=2 local ct=2
if Duel.GetMatchingGroup(Card.IsFaceup,0,LOCATION_MZONE,LOCATION_MZONE,nil):GetClassCount(Card.GetAttribute)>=3 and Duel.GetFieldGroupCount(p,LOCATION_DECK,0)>=3 and Duel.SelectOption(p,aux.Stringid(28321714,0),aux.Stringid(28321714,1))==1 then if aux.GetAttributeCount(Duel.GetMatchingGroup(Card.IsFaceup,0,LOCATION_MZONE,LOCATION_MZONE,nil))>=3 and Duel.GetFieldGroupCount(p,LOCATION_DECK,0)>=3 and Duel.SelectOption(p,aux.Stringid(28321714,0),aux.Stringid(28321714,1))==1 then
ct=3 ct=3
end end
Duel.ConfirmDecktop(p,ct) Duel.ConfirmDecktop(p,ct)
......
...@@ -181,7 +181,7 @@ end ...@@ -181,7 +181,7 @@ end
function c28335633.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28335633.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsFaceup,0,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,0,LOCATION_MZONE,LOCATION_MZONE,nil)
local ct=g:GetClassCount(Card.GetAttribute) local ct=aux.GetAttributeCount(g)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(0x30) and c28335633.tdfilter(chkc) and chkc~=c end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(0x30) and c28335633.tdfilter(chkc) and chkc~=c end
if chk==0 then return Duel.IsExistingTarget(c28335633.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,c) and Duel.IsPlayerCanDraw(tp,1) and ct>0 end if chk==0 then return Duel.IsExistingTarget(c28335633.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,c) and Duel.IsPlayerCanDraw(tp,1) and ct>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
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