Commit 4222a5cd authored by gggg's avatar gggg

fix

parent e896f720
Pipeline #35669 passed with stage
in 27 seconds
No preview for this file type
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter) Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter)
end end
function cm.counterfilter(c) function cm.counterfilter(c)
return Senya.check_set_elem(c) or not c:IsType(TYPE_XYZ) or c:GetSummonLocation()~=LOCATION_EXTRA return Senya.check_set_elem(c) or c:IsType(TYPE_XYZ) or c:GetSummonLocation()~=LOCATION_EXTRA
end end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 and if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 and
......
...@@ -169,7 +169,7 @@ end ...@@ -169,7 +169,7 @@ end
function cm.rcon(e,tp,eg,ep,ev,re,r,rp) function cm.rcon(e,tp,eg,ep,ev,re,r,rp)
local ct=(ev & 0xffff) local ct=(ev & 0xffff)
return (r & REASON_COST)~=0 and re:GetHandler()==e:GetHandler() and re:IsHasType(0x7e0) return (r & REASON_COST)~=0 and re:GetHandler()==e:GetHandler() and re:IsHasType(0x7e0) and Senya.check_set_elem(e:GetHandler())
end end
function cm.rop(e,tp,eg,ep,ev,re,r,rp) function cm.rop(e,tp,eg,ep,ev,re,r,rp)
e:Reset() e:Reset()
......
...@@ -17,7 +17,7 @@ function cm.initial_effect(c) ...@@ -17,7 +17,7 @@ function cm.initial_effect(c)
Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter) Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.counterfilter)
end end
function cm.counterfilter(c) function cm.counterfilter(c)
return Senya.check_set_elem(c) or not c:IsType(TYPE_XYZ) or c:GetSummonLocation()~=LOCATION_EXTRA return Senya.check_set_elem(c) or c:IsType(TYPE_XYZ) or c:GetSummonLocation()~=LOCATION_EXTRA
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
......
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