Commit 133357c1 authored by POLYMER's avatar POLYMER

fix

parent 29bac4b1
...@@ -32,11 +32,10 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,11 +32,10 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c,tp) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,c,tp)
local grav=c:IsLocation(LOCATION_GRAVE) local grav=c:IsLocation(LOCATION_GRAVE)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
if grav then if grav then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -48,7 +47,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +47,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
end end
end end
end
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0xa79) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0xa79) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
...@@ -32,18 +32,17 @@ function s.cfilter(c,tp) ...@@ -32,18 +32,17 @@ function s.cfilter(c,tp)
end end
function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetFlagEffect(tp,12845002)==0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,c,tp) end if chk==0 then return Duel.GetFlagEffect(tp,12845002)==0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.RegisterFlagEffect(tp,12845002,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,12845002,RESET_PHASE+PHASE_END,0,1)
end end
function s.hspop(e,tp,eg,ep,ev,re,r,rp) function s.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c,tp) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,c,tp)
local grav=c:IsLocation(LOCATION_GRAVE) local grav=c:IsLocation(LOCATION_GRAVE)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
if grav then if grav then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -32,18 +32,17 @@ function s.cfilter(c,tp) ...@@ -32,18 +32,17 @@ function s.cfilter(c,tp)
end end
function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetFlagEffect(tp,12845003)==0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,c,tp) end if chk==0 then return Duel.GetFlagEffect(tp,12845003)==0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.RegisterFlagEffect(tp,12845003,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,12845003,RESET_PHASE+PHASE_END,0,1)
end end
function s.hspop(e,tp,eg,ep,ev,re,r,rp) function s.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c,tp) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,c,tp)
local grav=c:IsLocation(LOCATION_GRAVE) local grav=c:IsLocation(LOCATION_GRAVE)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
if grav then if grav then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -27,18 +27,17 @@ function s.cfilter(c,tp) ...@@ -27,18 +27,17 @@ function s.cfilter(c,tp)
end end
function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetFlagEffect(tp,12845004)==0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,c,tp) end if chk==0 then return Duel.GetFlagEffect(tp,12845004)==0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.RegisterFlagEffect(tp,12845004,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,12845004,RESET_PHASE+PHASE_END,0,1)
end end
function s.hspop(e,tp,eg,ep,ev,re,r,rp) function s.hspop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,c,tp) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,c,tp)
local grav=c:IsLocation(LOCATION_GRAVE) local grav=c:IsLocation(LOCATION_GRAVE)
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
if grav then if grav then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -33,14 +33,14 @@ function c71000172.initial_effect(c) ...@@ -33,14 +33,14 @@ function c71000172.initial_effect(c)
-- --
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetRange(LOCATION_MZONE) e4:SetTargetRange(1,0)
e4:SetAbsoluteRange(tp,1,0)
e4:SetTarget(c71000172.splimit) e4:SetTarget(c71000172.splimit)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c71000172.splimit(e,c) function c71000172.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0xe73) and c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0xe73) and c:IsLocation(LOCATION_EXTRA)
end end
function c71000172.filter(c,e,tp) function c71000172.filter(c,e,tp)
......
...@@ -23,14 +23,14 @@ function c71000173.initial_effect(c) ...@@ -23,14 +23,14 @@ function c71000173.initial_effect(c)
-- --
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetRange(LOCATION_MZONE) e4:SetTargetRange(1,0)
e4:SetAbsoluteRange(tp,1,0)
e4:SetTarget(c71000173.splimit) e4:SetTarget(c71000173.splimit)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c71000173.splimit(e,c) function c71000173.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0xe73) and c:IsLocation(LOCATION_EXTRA) return not c:IsSetCard(0xe73) and c:IsLocation(LOCATION_EXTRA)
end end
function c71000173.cfilter(c) function c71000173.cfilter(c)
......
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