Commit 9ff614f4 authored by POLYMER's avatar POLYMER

fix

parent 89ed81ce
...@@ -12,12 +12,13 @@ function s.initial_effect(c) ...@@ -12,12 +12,13 @@ function s.initial_effect(c)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,aux.FALSE)
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and r==REASON_RULE return ep~=tp and r==REASON_RULE
end end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_CHAIN)==0 end if chk==0 then return Duel.GetCustomActivityCount(id,tp,ACTIVITY_CHAIN)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
......
...@@ -50,9 +50,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,9 +50,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
local ex,tg,ct,p,v=Duel.GetOperationInfo(ev,ctg) local ex,tg,ct,p,v=Duel.GetOperationInfo(ev,ctg)
if tg then if tg then
if tg:IsExists(cm.nfilter,1,nil) then return true end if tg:IsExists(cm.nfilter,1,nil) then return true end
elseif v and v>0 and Duel.IsExistingMatchingCard(cm.nfilter,tp,v,0,1,nil) then elseif v and v>0 and p==tp and Duel.IsExistingMatchingCard(cm.nfilter,tp,v,0,1,nil) then return true end
return true
end
end end
return false return false
end end
......
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