Commit 5f03c3ab authored by Tachibana's avatar Tachibana

得得得得得

parent 366385f3
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1:SetOperation(cm.op1) e1:SetOperation(cm.op1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_LEAVE_GRAVE)
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_GRAVE) e2:SetRange(LOCATION_GRAVE)
...@@ -70,6 +70,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,6 +70,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local zg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_HAND,0,1,1,nil,tp) local zg=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
local tc=zg:GetFirst() local tc=zg:GetFirst()
local activate_con_check=false
if tc then if tc then
local b2=tc:GetActivateEffect():IsActivatable(tp) local b2=tc:GetActivateEffect():IsActivatable(tp)
if b2 then if b2 then
...@@ -95,7 +96,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,7 +96,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
te:UseCountLimit(tp,1,true) te:UseCountLimit(tp,1,true)
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true) local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true)
if tg then tg(e,tp,teg,tep,tev,tre,tr,trp,1) end if tg then tg(te,tp,teg,tep,tev,tre,tr,trp,1) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if g then if g then
local etc=g:GetFirst() local etc=g:GetFirst()
...@@ -104,8 +105,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,8 +105,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
etc=g:GetNext() etc=g:GetNext()
end end
end end
if not tc:IsType(TYPE_FIELD+TYPE_CONTINUOUS) then
local op=te:GetOperation() local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end if op then op(te,tp,eg,ep,ev,re,r,rp) end
end
tc:ReleaseEffectRelation(te) tc:ReleaseEffectRelation(te)
if etc then if etc then
etc=g:GetFirst() etc=g:GetFirst()
...@@ -114,7 +117,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,7 +117,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
etc=g:GetNext() etc=g:GetNext()
end end
end end
if tc:GetType()==TYPE_SPELL or tc:GetType()==TYPE_TRAP or tc:IsType(TYPE_COUNTER+TYPE_QUICKPLAY) then if not tc:IsType(TYPE_FIELD+TYPE_CONTINUOUS) then
tc:CancelToGrave(false) tc:CancelToGrave(false)
end end
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