Commit bf27040d authored by POLYMER's avatar POLYMER

fix

parent 374b61f5
......@@ -32,6 +32,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if op==1 then
local g=Duel.SelectTarget(tp,aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.HintSelection(g)
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetCategory(CATEGORY_DISABLE)
if Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_QUICKPLAY)>=3 then
e:SetCategory(CATEGORY_DISABLE+CATEGORY_CONTROL) end
......
......@@ -34,6 +34,7 @@ if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and
{b3,aux.Stringid(m,2)})
if op==1 then local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
Duel.HintSelection(g)
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
if Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_QUICKPLAY)>=3 then Duel.SetChainLimit(cm.chainlm) end
e:GetHandler():RegisterFlagEffect(1,RESET_PHASE+PHASE_END,0,1)
elseif op==2 then
......
......@@ -38,6 +38,7 @@ local spchk=Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if op==1 then
local g=Duel.SelectTarget(tp,cm.filter,tp,0,LOCATION_GRAVE,1,1,nil,e,tp,spchk)
Duel.HintSelection(g)
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_ACTION+CATEGORY_GRAVE_SPSUMMON)
e:GetHandler():RegisterFlagEffect(1,RESET_PHASE+PHASE_END,0,1)
elseif op==2 then
......@@ -61,17 +62,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
and (not tc:IsAbleToRemove() or Duel.SelectYesNo(tp,aux.Stringid(m,3))) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local fid=e:GetHandler():GetFieldID()
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1,fid)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetLabel(fid)
e1:SetLabelObject(tc)
e1:SetCondition(cm.tgcon)
e1:SetOperation(cm.tgop)
Duel.RegisterEffect(e1,tp)
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1,fid)
else
Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
end
......@@ -86,6 +77,16 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if #g>0 then Duel.LinkSummon(tp,g:GetFirst(),nil) end
c:ResetFlagEffect(3)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetLabel(fid)
e1:SetLabelObject(tc)
e1:SetCondition(cm.tgcon)
e1:SetOperation(cm.tgop)
Duel.RegisterEffect(e1,tp)
end
function cm.lfilter(c)
return c:IsLinkSummonable(nil)
......
......@@ -33,6 +33,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if op==1 then
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.HintSelection(g)
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetCategory(CATEGORY_DESTROY)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
e:GetHandler():RegisterFlagEffect(1,RESET_PHASE+PHASE_END,0,1)
......
......@@ -39,6 +39,7 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if op==1 then
local g=Duel.SelectTarget(tp,cm.filter1,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.HintSelection(g)
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetCategory(CATEGORY_SPECIAL_SUMMON)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
e:GetHandler():RegisterFlagEffect(1,RESET_PHASE+PHASE_END,0,1)
......
......@@ -35,6 +35,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
{b3,aux.Stringid(m,2)})
if op==1 then
local g=Duel.SelectTarget(tp,cm.fit,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
Duel.HintSelection(g)
e:GetHandler():RegisterFlagEffect(1,RESET_PHASE+PHASE_END,0,1)
elseif op==2 then
......
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