Commit 20f64fb9 authored by Tachibana's avatar Tachibana

eme

parent 8d258df1
Pipeline #9035 passed with stages
in 34 minutes and 1 second
...@@ -5,5 +5,5 @@ cm.named_with_SliverScene=1 ...@@ -5,5 +5,5 @@ cm.named_with_SliverScene=1
Duel.LoadScript("c26800000.lua") Duel.LoadScript("c26800000.lua")
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spfilter(c) function cm.spfilter(c)
return c:IsCode(26821000) and c:IsAbleToGraveAsCost() return c:IsCode(26821000) and c:IsAbleToGraveAsCost()
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.filter(c) function cm.filter(c)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsCode(26821000) return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsCode(26821000)
......
...@@ -32,7 +32,7 @@ function cm.initial_effect(c) ...@@ -32,7 +32,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end
......
...@@ -26,7 +26,7 @@ function cm.initial_effect(c) ...@@ -26,7 +26,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000) return c:IsFaceup() and c:IsCode(26821000)
...@@ -35,7 +35,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function cm.filter(c) function cm.filter(c)
return cm.IsSliverScene(c) and c:IsAbleToHand() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsAbleToHand()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
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.GetAttacker():IsControler(1-tp) return Duel.GetAttacker():IsControler(1-tp)
...@@ -79,5 +79,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,5 +79,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function cm.efftg(e,c) function cm.efftg(e,c)
return c:IsType(TYPE_MONSTER) and cm.IsSliverScene(c) return c:IsType(TYPE_MONSTER) and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
...@@ -29,10 +29,10 @@ function cm.initial_effect(c) ...@@ -29,10 +29,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spfilter(c) function cm.spfilter(c)
return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsType(TYPE_MONSTER)
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -30,7 +30,7 @@ function cm.initial_effect(c) ...@@ -30,7 +30,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000) return c:IsFaceup() and c:IsCode(26821000)
...@@ -69,7 +69,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,7 +69,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1) aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,1)
end end
function cm.recfilter(c) function cm.recfilter(c)
return c:IsFaceup() and cm.IsSliverScene(c) return c:IsFaceup() and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
function cm.rectg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.recfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.recfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and c:IsCode(26821000) return c:IsFaceup() and c:IsCode(26821000)
...@@ -38,7 +38,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and Duel.GetTurnPlayer()~=tp and aux.bpcon() return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and Duel.GetTurnPlayer()~=tp and aux.bpcon()
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return (cm.IsSliverScene(c) or c:IsControler(1-tp)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999) or c:IsControler(1-tp)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and cm.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and cm.filter(chkc,e,tp) end
...@@ -78,5 +78,5 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,5 +78,5 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function cm.atlimit(e,c) function cm.atlimit(e,c)
return cm.IsSliverScene(c) and c:IsFaceup() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsFaceup()
end end
...@@ -30,7 +30,7 @@ function cm.initial_effect(c) ...@@ -30,7 +30,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -35,7 +35,7 @@ function cm.initial_effect(c) ...@@ -35,7 +35,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
......
...@@ -41,10 +41,10 @@ function cm.splimit(e,se,sp,st) ...@@ -41,10 +41,10 @@ function cm.splimit(e,se,sp,st)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.dfilter(c) function cm.dfilter(c)
return c:IsFacedown() or not cm.IsSliverScene(c) return c:IsFacedown() or not (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
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 not Duel.IsExistingMatchingCard(cm.dfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.dfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -22,7 +22,7 @@ function cm.initial_effect(c) ...@@ -22,7 +22,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
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 e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end
...@@ -30,7 +30,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not cm.IsSliverScene(c) return c:IsFacedown() or not (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
...@@ -41,7 +41,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,7 +41,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and cm.IsSliverScene(c) return c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local sg=Duel.GetMatchingGroup(cm.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
......
...@@ -32,7 +32,7 @@ function cm.initial_effect(c) ...@@ -32,7 +32,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.excost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.excost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end
...@@ -52,7 +52,7 @@ function cm.exop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function cm.exop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleExtra(1-tp) Duel.ShuffleExtra(1-tp)
end end
function cm.filter(c) function cm.filter(c)
return cm.IsSliverScene(c) and c:IsAbleToHand() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsAbleToHand()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.filter(chkc) end
......
...@@ -26,10 +26,10 @@ function cm.initial_effect(c) ...@@ -26,10 +26,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cfilter(c,g) function cm.cfilter(c,g)
return c:IsFaceup() and cm.IsSliverScene(c) return c:IsFaceup() and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
and g:IsContains(c) and not c:IsStatus(STATUS_BATTLE_DESTROYED) and g:IsContains(c) and not c:IsStatus(STATUS_BATTLE_DESTROYED)
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)
...@@ -40,7 +40,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -40,7 +40,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function cm.mfilter(c) function cm.mfilter(c)
return cm.IsSliverScene(c) and c:IsLinkType(TYPE_MONSTER) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsLinkType(TYPE_MONSTER)
end end
function cm.filter(c,tp) function cm.filter(c,tp)
return c:GetSummonPlayer()==tp and c:IsFaceup() return c:GetSummonPlayer()==tp and c:IsFaceup()
......
...@@ -28,10 +28,10 @@ function cm.initial_effect(c) ...@@ -28,10 +28,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cdfilter(c) function cm.cdfilter(c)
return c:IsFaceup() and cm.IsSliverScene(c) and c:GetCode()~=m return c:IsFaceup() and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:GetCode()~=m
end end
function cm.cspcon(e,c) function cm.cspcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -30,10 +30,10 @@ function cm.initial_effect(c) ...@@ -30,10 +30,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and cm.IsSliverScene(c) and not c:IsCode(m) return c:IsFaceup() and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and not c:IsCode(m)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -56,7 +56,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.IsExistingMatchingCard(cm.efilter,tp,LOCATION_ONFIELD,0,1,nil) return rp==1-tp and Duel.IsExistingMatchingCard(cm.efilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -27,7 +27,7 @@ function cm.initial_effect(c) ...@@ -27,7 +27,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.hspfilter(c,ft,tp) function cm.hspfilter(c,ft,tp)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_BEAST) return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_BEAST)
...@@ -53,7 +53,7 @@ function cm.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function cm.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function cm.damfilter(c) function cm.damfilter(c)
return cm.IsSliverScene(c) and c:IsFaceup() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsFaceup()
end end
function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.damfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.damfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -28,10 +28,10 @@ function cm.initial_effect(c) ...@@ -28,10 +28,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.rfilter(c) function cm.rfilter(c)
return cm.IsSliverScene(c) return cm.IsSliverScene(c) or c:IsCode(26821000,26821999)
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.CheckReleaseGroup(tp,cm.rfilter,1,nil) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return Duel.CheckReleaseGroup(tp,cm.rfilter,1,nil) and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end
...@@ -75,5 +75,5 @@ function cm.ntcon(e,c,minc) ...@@ -75,5 +75,5 @@ function cm.ntcon(e,c,minc)
return minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end end
function cm.nttg(e,c) function cm.nttg(e,c)
return c:IsLevel(7) and cm.IsSliverScene(c) return c:IsLevel(7) and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
...@@ -26,10 +26,10 @@ function cm.initial_effect(c) ...@@ -26,10 +26,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.tgfilter(c) function cm.tgfilter(c)
return cm.IsSliverScene(c) and c:IsAbleToGrave() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsAbleToGrave()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) end
...@@ -70,5 +70,5 @@ function cm.immop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,5 +70,5 @@ function cm.immop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function cm.indtg(e,c) function cm.indtg(e,c)
return cm.IsSliverScene(c) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
...@@ -31,10 +31,10 @@ function cm.initial_effect(c) ...@@ -31,10 +31,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spfilter(c) function cm.spfilter(c)
return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -29,7 +29,7 @@ function cm.initial_effect(c) ...@@ -29,7 +29,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -31,7 +31,7 @@ function cm.initial_effect(c) ...@@ -31,7 +31,7 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
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 e:GetHandler():IsDiscardable() and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end if chk==0 then return e:GetHandler():IsDiscardable() and Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,0) end
...@@ -39,7 +39,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,7 +39,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,1) Amana.SliverCost(e,tp,eg,ep,ev,re,r,rp,1)
end end
function cm.filter(c) function cm.filter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and cm.IsSliverScene(c) and not c:IsCode(m) and c:IsAbleToHand() return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and not c:IsCode(m) and c:IsAbleToHand()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) end
...@@ -54,7 +54,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,7 +54,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.spfilter(c,e,tp) function cm.spfilter(c,e,tp)
return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.spfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.spfilter(chkc) end
......
...@@ -30,10 +30,10 @@ function cm.initial_effect(c) ...@@ -30,10 +30,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and cm.IsSliverScene(c) return c:IsFaceup() and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
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.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -22,7 +22,7 @@ function cm.initial_effect(c) ...@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DAMAGE) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m) e2:SetCountLimit(1,m+900)
e2:SetCost(Amana.SliverCost) e2:SetCost(Amana.SliverCost)
e2:SetTarget(cm.sstg) e2:SetTarget(cm.sstg)
e2:SetOperation(cm.ssop) e2:SetOperation(cm.ssop)
...@@ -30,11 +30,11 @@ function cm.initial_effect(c) ...@@ -30,11 +30,11 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
return rp==tp and cm.IsSliverScene(rc) return rp==tp and (cm.IsSliverScene(rc) or rc:IsCode(26821000,26821999))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -49,7 +49,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.ssfilter(c,e,tp) function cm.ssfilter(c,e,tp)
return cm.IsSliverScene(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.sstg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sstg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -34,10 +34,10 @@ function cm.initial_effect(c) ...@@ -34,10 +34,10 @@ function cm.initial_effect(c)
end end
function cm.IsSliverScene(c) function cm.IsSliverScene(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return m and (m.named_with_SliverScene or c:IsCode(26821000,26821999)) return m and m.named_with_SliverScene
end end
function cm.thfilter(c) function cm.thfilter(c)
return cm.IsSliverScene(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return (cm.IsSliverScene(c) or c:IsCode(26821000,26821999)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.thfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(cm.thfilter,tp,LOCATION_DECK,0,nil)
...@@ -55,7 +55,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function cm.drtgfilter(c) function cm.drtgfilter(c)
return c:IsAbleToDeck() and cm.IsSliverScene(c) return c:IsAbleToDeck() and (cm.IsSliverScene(c) or c:IsCode(26821000,26821999))
end end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingMatchingCard(cm.drtgfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingMatchingCard(cm.drtgfilter,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
!setname 0x2fb5 火売 !setname 0x2fb5 火売
!setname 0x4fb5 极丽六鸟 !setname 0x4fb5 极丽六鸟
!setname 0x3fa6 普利兹姆 !setname 0x3fa6 普利兹姆
!setname 0x5fa6 六星彩(非星彩) !setname 0x5fa6 六星彩|非星彩
!setname 0x6fa6 守护天使 !setname 0x6fa6 守护天使
!setname 0x9fa6 维莉丝塔 !setname 0x9fa6 维莉丝塔
!setname 0xafa6 露米娅 !setname 0xafa6 露米娅
......
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