Commit f391c6a6 authored by tsubaki's avatar tsubaki

2.0.0a fix3

parent 6dea3231
Pipeline #39656 passed with stage
in 30 seconds
......@@ -15,10 +15,10 @@ function c21145.filter(c)
and not c:IsType(TYPE_LINK) and c:IsReleasable()
end
function c21145.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local a,b,dot=DOT.DotCounter.Get(1-tp)
local LO=0x6
if dot>0 then LO=0x7 end
if chk==0 then
local a,b,dot=DOT.DotCounter.Get(1-tp)
local LO=0x6
if dot>0 then LO=0x7 end
return Duel.IsExistingMatchingCard(c21145.filter,tp,LO,0,1,nil) end
local g=Duel.SelectMatchingCard(tp,c21145.filter,tp,LO,0,1,1,nil)
Duel.Release(g,REASON_COST)
......
......@@ -2,9 +2,9 @@
function c21146.initial_effect(c)
-- Activate
local e1 = Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE + CATEGORY_DAMAGE)
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
--e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c21146.cost)
e1:SetTarget(c21146.target)
......@@ -18,21 +18,21 @@ function c21146.filter(c)
end
function c21146.cost(e, tp, eg, ep, ev, re, r, rp, chk)
local a, b, dot = DOT.DotCounter.Get(1 - tp)
local LO = 0x6
if dot > 0 then LO = 0x7 end
local LOE = 0x6
if dot > 0 then LOE = 0x7 end
if chk == 0 then
return Duel.IsExistingMatchingCard(c21146.filter, tp, LO, 0, 1, nil)
return Duel.IsExistingMatchingCard(c21146.filter, tp, LOE, 0, 1, nil)
end
local g = Duel.SelectMatchingCard(tp, c21146.filter, tp, LO, 0, 1, 1, nil)
local g = Duel.SelectMatchingCard(tp, c21146.filter, tp, LOE, 0, 1, 1, nil)
Duel.Release(g, REASON_COST)
end
function c21146.target(e, tp, eg, ep, ev, re, r, rp, chk)
if chk == 0 then return true end
if chk == 0 then return Duel.IsExistingMatchingCard(aux.TRUE, tp, 0, LOCATION_ONFIELD, 1, 1, e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_ONFIELD)
end
function c21146.activate(e, tp, eg, ep, ev, re, r, rp)
local c = e:GetHandler()
local g = Duel.SelectMatchingCard(tp, aux.TRUE, tp, 0, LOCATION_ONFIELD, 1,
1, e:GetHandler())
local g = Duel.SelectMatchingCard(tp, aux.TRUE, tp, 0, LOCATION_ONFIELD, 1, 1, e:GetHandler())
if #g > 0 then
Duel.Remove(g, POS_FACEDOWN, REASON_EFFECT)
local e1 = Effect.CreateEffect(c)
......
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