Commit 8c1ad568 authored by Tachibana's avatar Tachibana

1145141919810

parent d4be471c
Pipeline #15046 passed with stages
in 29 minutes and 55 seconds
......@@ -177,7 +177,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function cm.setfilter(c,tp)
return c:IsPosition(POS_FACEUP) and ( c:IsType(TYPE_MONSTER) and c:IsCanTurnSet() or c:IsSSetable() )
return c:IsPosition(POS_FACEUP) and ( (c:IsType(TYPE_MONSTER) and c:IsCanTurnSet()) or c:IsType(TYPE_SPELL+TYPE_TRAP) )
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end
......
......@@ -169,9 +169,9 @@ function cm.costfilter(c,tp)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if Duel.GetCurrentChain()>1 and Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_SZONE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
if Duel.GetCurrentChain()>1 and Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_SZONE,0,3,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_SZONE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_SZONE,0,3,3,nil)
Duel.Release(g,REASON_EFFECT)
e:SetLabel(1)
end
......
......@@ -30,7 +30,7 @@ function cm.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_UPDATE_LEVEL)
e3:SetRange(LOCATION_FZONE)
e3:SetRange(LOCATION_ONFIELD)
e3:SetTargetRange(LOCATION_HAND,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xfa4))
e3:SetValue(1)
......
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