Commit eaad5137 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 4436adb7
...@@ -40,7 +40,7 @@ function cm.costfilter(c) ...@@ -40,7 +40,7 @@ function cm.costfilter(c)
return c:IsPublic() return c:IsPublic()
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) 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 g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_HAND,0,e:GetHandler())
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
...@@ -85,7 +85,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
return true return true
end end
function filter(c,code) 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 end
function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=re:GetHandler() local rc=re:GetHandler()
......
...@@ -17,7 +17,7 @@ function cm.initial_effect(c) ...@@ -17,7 +17,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DAMAGE) e1:SetCode(EVENT_DAMAGE)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m)
e1:SetTarget(cm.sumtg) e1:SetTarget(cm.sumtg)
e1:SetOperation(cm.sumop) 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