Commit a05d043d authored by fallenstardust's avatar fallenstardust
parents 0d8416fc 491a3bbc
Pipeline #27353 passed with stages
in 1 minute and 1 second
...@@ -60,7 +60,7 @@ function s.spfilter(c,e,tp,fc) ...@@ -60,7 +60,7 @@ function s.spfilter(c,e,tp,fc)
return aux.IsMaterialListCode(fc,c:GetCode()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return aux.IsMaterialListCode(fc,c:GetCode()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.fselect(tg,tp,ec) function s.fselect(tg,tp,ec)
return Duel.GetMZoneCount(tp,c,tp)>=#tg return Duel.GetMZoneCount(tp,ec,tp)>=#tg
end end
function s.ffilter(c,e,tp,ec) function s.ffilter(c,e,tp,ec)
if not (c:IsType(TYPE_FUSION) and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(8)) then return false end if not (c:IsType(TYPE_FUSION) and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(8)) then return false end
......
...@@ -34,7 +34,7 @@ end ...@@ -34,7 +34,7 @@ end
function s.tgfilter(c,e) function s.tgfilter(c,e)
return c:IsFaceupEx() and c:GetBaseAttack()>0 and c:IsType(TYPE_MONSTER) and c:IsCanBeEffectTarget(e) return c:IsFaceupEx() and c:GetBaseAttack()>0 and c:IsType(TYPE_MONSTER) and c:IsCanBeEffectTarget(e)
end end
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local g=eg:Filter(s.tgfilter,nil,e) local g=eg:Filter(s.tgfilter,nil,e)
if chk==0 then return g:GetCount()>0 end if chk==0 then return g:GetCount()>0 end
......
...@@ -41,7 +41,7 @@ end ...@@ -41,7 +41,7 @@ end
function s.filter(c,e) function s.filter(c,e)
return c:IsLocation(LOCATION_MZONE) and c:IsCanBeEffectTarget(e) return c:IsLocation(LOCATION_MZONE) and c:IsCanBeEffectTarget(e)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and s.filter(chkc,e) end if chkc then return eg:IsContains(chkc) and s.filter(chkc,e) end
if chk==0 then return eg:IsExists(s.filter,1,nil,e) end if chk==0 then return eg:IsExists(s.filter,1,nil,e) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
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