Commit 351c3384 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 7fde036a
......@@ -114,11 +114,14 @@ function cm.ffilter(c)
return not c:IsReason(REASON_DRAW) and c:IsPreviousLocation(LOCATION_DECK)
end
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
Debug.Message(e:GetHandler():IsAbleToDeck())
Debug.Message(rp==1-tp)
Debug.Message(eg:IsExists(cm.ffilter,1,nil))
return e:GetHandler():IsAbleToDeck() and rp==1-tp and eg:IsExists(cm.ffilter,1,nil)
end
function cm.spop1(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler() then
Duel.SendtoHand(re:GetHandler(),nil,REASON_EFFECT)
if eg then
Duel.Remove(eg:Filter(cm.ffilter,nil),POS_FACEUP,REASON_EFFECT)
end
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
......
......@@ -38,7 +38,7 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetRange(LOCATION_HAND)
e2:SetRange(LOCATION_DECK)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e2:SetTargetRange(POS_FACEUP_ATTACK,1)
e2:SetCondition(cm.spcon)
......
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