Commit eaad5137 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 4436adb7
Pipeline #2478 passed with stages
in 38 minutes and 58 seconds
......@@ -40,7 +40,7 @@ function cm.costfilter(c)
return c:IsPublic()
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
if chk==0 then return not Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_HAND,0,1,e:GetHandler())end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_HAND,0,e:GetHandler())
local tc=g:GetFirst()
while tc do
......@@ -85,7 +85,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
return true
end
function filter(c,code)
return c:IsAbleToHand() and c:IsCode(code) and not re:GetHandler():IsCode(table.unpack(Sr_setback))
return c:IsAbleToHand() and c:IsCode(code) and not re:GetHandler():IsCode(table.unpack(Srprzm_setback))
end
function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=re:GetHandler()
......
......@@ -17,7 +17,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DAMAGE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.sumtg)
e1:SetOperation(cm.sumop)
......
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