Commit d9d4b33c authored by Amiya's avatar Amiya
parents 2c39c0f4 924af46f
Pipeline #31747 passed with stages
in 3 minutes and 20 seconds
......@@ -98,4 +98,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -76,4 +76,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
\ No newline at end of file
end
......@@ -177,4 +177,4 @@ function s.fspop(e,tp,eg,ep,ev,re,r,rp)
end
function s.cfilter(c)
return c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED)
end
\ No newline at end of file
end
......@@ -81,4 +81,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and aux.NecroValleyFilter()(tc) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -54,4 +54,4 @@ function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
end
function s.sumtg(e,c)
return c:IsRace(RACE_ZOMBIE) and c:IsLevelBelow(4)
end
\ No newline at end of file
end
......@@ -78,4 +78,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
......@@ -77,4 +77,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -75,23 +75,20 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function s.attfilter(c,att)
return c:IsSetCard(0x2c3) and c:IsAttribute(att)
function s.attfilter(c)
return c:IsSetCard(0x2c3) and c:IsType(TYPE_MONSTER)
end
function s.effcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetHandler():GetOverlayGroup()
local att=0x1
local r1=0
local res=0
for i=1,6 do
if g:IsExists(s.attfilter,1,nil,att) then
res=res+1
local att=0
for tc in aux.Next(g) do
if s.attfilter(tc) then
att=att|tc:GetAttribute()
end
att=att*2
r1=r1+1
end
return res==6
local gattr=ATTRIBUTE_EARTH|ATTRIBUTE_WATER|ATTRIBUTE_FIRE|ATTRIBUTE_WIND|ATTRIBUTE_LIGHT|ATTRIBUTE_DARK
return att&gattr==gattr
end
function s.efilter(e,te)
return te:GetOwner()~=e:GetOwner()
end
\ No newline at end of file
end
......@@ -7,6 +7,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER|TIMING_END_PHASE)
e1:SetCountLimit(1,id)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
......@@ -72,4 +73,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if tg:GetCount()>0 then
Duel.SendtoGrave(tg,REASON_EFFECT+REASON_RETURN)
end
end
\ No newline at end of file
end
......@@ -67,4 +67,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsRace(RACE_ZOMBIE)
end
\ No newline at end of file
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