Commit 020b6c18 authored by Momobako's avatar Momobako

Push by Appveyor

parent 3590494c
......@@ -11,7 +11,6 @@ function c12000055.initial_effect(c)
e2:SetCategory(CATEGORY_DRAW+CATEGORY_HANDES)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1)
e2:SetCost(c12000055.spcost)
e2:SetTarget(c12000055.sptg)
e2:SetOperation(c12000055.spop)
......
......@@ -33,9 +33,9 @@ function c2170702.spfilter(c)
end
function c2170702.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c2170702.spfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c2170702.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
if chk==0 then return Duel.IsExistingTarget(c2170702.spfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
end
function c2170702.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -8,10 +8,15 @@ function c2170707.initial_effect(c)
e1:SetHintTiming(0,TIMING_END_PHASE+TIMING_EQUIP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,2170707+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c2170707.cost)
e1:SetTarget(c2170707.target)
e1:SetOperation(c2170707.activate)
c:RegisterEffect(e1)
end
function c2170707.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end
Duel.PayLPCost(tp,2000)
end
function c2170707.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsDestructable()
end
......@@ -20,16 +25,19 @@ function c2170707.cffilter(c)
end
function c2170707.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c2170707.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c2170707.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
if chk==0 then return Duel.IsExistingTarget(c2170707.filter,tp,0,LOCATION_ONFIELD,1,nil)
and Duel.IsExistingMatchingCard(c2170707.cffilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
local rt=Duel.GetTargetCount(c2170707.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local rt=Duel.GetTargetCount(c2170707.filter,tp,0,LOCATION_ONFIELD,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local cg=Duel.SelectMatchingCard(tp,c2170707.cffilter,tp,LOCATION_HAND,0,1,99,e:GetHandler())
Duel.ConfirmCards(1-tp,cg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c2170707.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,0,cg:GetCount(),nil)
local g=Duel.SelectTarget(tp,c2170707.filter,tp,0,LOCATION_ONFIELD,0,cg:GetCount(),nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
Duel.ShuffleHand(tp)
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
Duel.SetChainLimit(aux.FALSE)
end
end
function c2170707.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
......
......@@ -14,7 +14,7 @@ function c2170708.initial_effect(c)
c:RegisterEffect(e1)
end
function c2170708.sdfilter(c)
return c:IsFaceup() and c:IsSetCard(0x211)
return c:IsFaceup() and c:IsSetCard(0x211) and c:IsType(TYPE_SPELL)
end
function c2170708.sdcon(e)
return Duel.IsExistingMatchingCard(c2170708.sdfilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,2,e:GetHandler())
......
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