Commit 51ebdfb8 authored by wind2009's avatar wind2009

Update 超征竜-ディザスター

parent 7c132112
Pipeline #31745 passed with stages
in 3 minutes and 13 seconds
...@@ -75,22 +75,19 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,22 +75,19 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function s.attfilter(c,att) function s.attfilter(c)
return c:IsSetCard(0x2c3) and c:IsAttribute(att) return c:IsSetCard(0x2c3) and c:IsType(TYPE_MONSTER)
end end
function s.effcon(e,tp,eg,ep,ev,re,r,rp) function s.effcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetHandler():GetOverlayGroup() local g=e:GetHandler():GetOverlayGroup()
local att=0x1 local att=0
local r1=0 for tc in aux.Next(g) do
local res=0 if s.attfilter(tc) then
for i=1,6 do att=att|tc:GetAttribute()
if g:IsExists(s.attfilter,1,nil,att) then
res=res+1
end end
att=att*2
r1=r1+1
end end
return res==6 local gattr=ATTRIBUTE_EARTH|ATTRIBUTE_WATER|ATTRIBUTE_FIRE|ATTRIBUTE_WIND|ATTRIBUTE_LIGHT|ATTRIBUTE_DARK
return att&gattr==gattr
end end
function s.efilter(e,te) function s.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
......
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