Commit bbd01a1c authored by POLYMER's avatar POLYMER

fix

parent e5847d68
...@@ -52,6 +52,13 @@ function s.chop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,6 +52,13 @@ function s.chop(e,tp,eg,ep,ev,re,r,rp)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
e3:SetTargetRange(1,0) e3:SetTargetRange(1,0)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
--
local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(12847200,12))
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e6:SetCode(EVENT_FREE_CHAIN)
e6:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_CANNOT_DISABLE)
Duel.RegisterEffect(e6,tp)
end end
c:SetEntityCode(89631139) c:SetEntityCode(89631139)
Duel.ConfirmCards(tp,c) Duel.ConfirmCards(tp,c)
......
...@@ -59,18 +59,18 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,18 +59,18 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
end end
end end
function s.spfilter(c,mc,e) function s.spfilter(c,mc,e,tp)
return (c:IsSetCard(0x2016) or c:IsSetCard(0xff)) and c:IsLevelBelow(mc:GetLevel()) and c:IsCanBeSpecialSummoned(e,0,e:GetHandlerPlayer(),false,false) return (c:IsSetCard(0x2016) or c:IsSetCard(0xff)) and c:IsLevelBelow(mc:GetLevel()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.toefilter(c,e) function s.toefilter(c,e,tp)
return c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsAbleToExtra() and c:IsFaceupEx() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,c,e) return c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsAbleToExtra() and c:IsFaceupEx() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,c,e,tp)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_MZONE+LOCATION_REMOVED) and chkc:IsControler(tp) and s.toefilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_MZONE+LOCATION_REMOVED) and chkc:IsControler(tp) and s.toefilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(s.toefilter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e) end and Duel.IsExistingTarget(s.toefilter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,s.toefilter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e) local g=Duel.SelectTarget(tp,s.toefilter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
...@@ -82,7 +82,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
and tc:IsLocation(LOCATION_EXTRA) and tc:IsLocation(LOCATION_EXTRA)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,tc,e) local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,tc,e,tp)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
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