Commit f9a6e611 authored by Nemo Ma's avatar Nemo Ma

fix

parent 19736e2a
......@@ -27,6 +27,7 @@ end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
if Duel.SendtoDeck(g,nil,2,REASON_COST)>0 then
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,e:GetHandler())
......
......@@ -88,8 +88,8 @@ function cm.initial_effect(c)
if og and #og>0 and tc:CheckRemoveOverlayCard(p,#og,r) then rg:Merge(og) end
end
if rg and #rg>0 and (ct>ct0 or Duel.SelectYesNo(p,aux.Stringid(m,2))) then
Duel.Hint(HINT_SELECTMSG,ep,HINTMSG_REMOVEXYZ)
local tg=rg:Select(ep,math.max(1,ct-ct0),ct,nil)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_REMOVEXYZ)
local tg=rg:Select(p,math.max(1,ct-ct0),ct,nil)
if #tg>0 then
local ct1=Duel.SendtoGrave(tg,r)
ct=ct-ct1
......
......@@ -5,7 +5,6 @@ function cm.initial_effect(c)
c:EnableReviveLimit()
local e0=aux.AddLinkProcedure(c,nil,3,3,cm.lcheck)
e0:SetProperty(e0:GetProperty()|EFFECT_FLAG_SET_AVAILABLE)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_MATERIAL_CHECK)
......@@ -40,7 +39,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_EXTRA_LINK_MATERIAL)
e5:SetRange(LOCATION_EXTRA)
e5:SetTargetRange(LOCATION_ONFIELD,0)
......@@ -84,7 +83,9 @@ function cm.lcheckc(c)
return 0x100
end
function cm.lcheck2(c)
return (not c:IsType(TYPE_CONTINUOUS)) and c:IsPosition(POS_FACEDOWN_DEFENSE)
local con1=c:IsType(TYPE_MONSTER) and c:IsPosition(POS_FACEDOWN_DEFENSE)
local con2=c:IsType(TYPE_TRAP+TYPE_SPELL) and not c:IsType(TYPE_CONTINUOUS+TYPE_TRAPMONSTER)
return con1 or con2 or con3
end
function cm.lcheck(g)
return g:GetClassCount(cm.lcheckc)==g:GetCount() and g:FilterCount(cm.lcheck2,nil)==0
......
......@@ -54,6 +54,7 @@ function c67200082.operation(e,tp,eg,ep,ev,re,r,rp)
end
--spsummon
function c67200082.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return e:GetHandler():IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
end
function c67200082.spfilter(c,e,tp)
......
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