Commit e2218479 authored by POLYMER's avatar POLYMER

fix

parent a415b94d
......@@ -75,7 +75,7 @@ function c22022320.cost4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,4,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,4,4,REASON_COST)
end
function 22022320.atkop(e,tp,eg,ep,ev,re,r,rp)
function c22022320.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
local e1=Effect.CreateEffect(c)
......
......@@ -28,14 +28,17 @@ function c9911459.initial_effect(c)
e4:SetCode(EVENT_REMOVE)
c:RegisterEffect(e4)
end
function c9911459.rcfilter(c,e)
return c:IsFaceupEx() and c:IsCanBeEffectTarget(e) and (c:IsAbleToHand() or c:IsAbleToDeck())
function c9911459.rcfilter1(c,e)
return c:IsCanBeEffectTarget(e) and (c:IsAbleToHand() or c:IsAbleToDeck())
end
function c9911459.rcfilter2(c)
return c:IsFaceupEx() and c:IsSetCard(0x3952)
end
function c9911459.fselect(g)
return g:IsExists(Card.IsSetCard,1,nil,0x3952) and g:IsExists(Card.IsAbleToHand,1,nil) and g:IsExists(Card.IsAbleToDeck,2,nil)
return g:IsExists(c9911459.rcfilter2,1,nil) and g:IsExists(Card.IsAbleToHand,1,nil) and g:IsExists(Card.IsAbleToDeck,2,nil)
end
function c9911459.rctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local dg=Duel.GetMatchingGroup(c9911459.rcfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,nil,e)
local dg=Duel.GetMatchingGroup(c9911459.rcfilter1,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,nil,e)
if chkc then return false end
if chk==0 then return dg:CheckSubGroup(c9911459.fselect,3,3) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
......
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