Commit cf46b5cc authored by Nemo Ma's avatar Nemo Ma

Update 210801

Around 100 cards
parent e116d6a8
...@@ -428,6 +428,24 @@ ...@@ -428,6 +428,24 @@
30002065 0 30002065 0
30010000 0 30010000 0
30012000 0 30012000 0
#210801
60000009 0
60000010 0
60000013 0
60001009 0
60001012 0
60001024 0
60001023 0
60001022 0
60001021 0
60001020 0
60001013 0
60001014 0
60001015 0
60001016 0
60001017 0
60001018 0
60001019 0
#210725 #210725
12524006 0 12524006 0
22050190 0 22050190 0
...@@ -491,22 +509,18 @@ ...@@ -491,22 +509,18 @@
60000108 1 60000108 1
60000108 1 60000108 1
#210606 #210606
60000002 0
60000003 0 --啥时候这卡会卖萌了再放出来不迟。
31409108 1 31409108 1
31407011 0 31407011 0
31407002 0 31407002 0
31407003 0 31407003 0
#210530 #210530
33401674 0 33401674 0
60000101 0
60001007 0 60001007 0
60001008 0 60001008 0
88990171 0 88990171 0
33400552 1 33400552 1
79029466 1 79029466 1
#210523 #210523
60000005 0
63790300 0 63790300 0
63790500 0 63790500 0
63790501 0 63790501 0
......
No preview for this file type
expansions/pics/40006762.jpg

54 KB | W: | H:

expansions/pics/40006762.jpg

55.7 KB | W: | H:

expansions/pics/40006762.jpg
expansions/pics/40006762.jpg
expansions/pics/40006762.jpg
expansions/pics/40006762.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40006763.jpg

54.6 KB | W: | H:

expansions/pics/40006763.jpg

55.6 KB | W: | H:

expansions/pics/40006763.jpg
expansions/pics/40006763.jpg
expansions/pics/40006763.jpg
expansions/pics/40006763.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40006764.jpg

56.2 KB | W: | H:

expansions/pics/40006764.jpg

55.9 KB | W: | H:

expansions/pics/40006764.jpg
expansions/pics/40006764.jpg
expansions/pics/40006764.jpg
expansions/pics/40006764.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40006826.jpg

52.6 KB | W: | H:

expansions/pics/40006826.jpg

50.7 KB | W: | H:

expansions/pics/40006826.jpg
expansions/pics/40006826.jpg
expansions/pics/40006826.jpg
expansions/pics/40006826.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40006827.jpg

53.3 KB | W: | H:

expansions/pics/40006827.jpg

52.6 KB | W: | H:

expansions/pics/40006827.jpg
expansions/pics/40006827.jpg
expansions/pics/40006827.jpg
expansions/pics/40006827.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009123.jpg

44 KB | W: | H:

expansions/pics/40009123.jpg

49.9 KB | W: | H:

expansions/pics/40009123.jpg
expansions/pics/40009123.jpg
expansions/pics/40009123.jpg
expansions/pics/40009123.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009131.jpg

51.3 KB | W: | H:

expansions/pics/40009131.jpg

61.1 KB | W: | H:

expansions/pics/40009131.jpg
expansions/pics/40009131.jpg
expansions/pics/40009131.jpg
expansions/pics/40009131.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/40009286.jpg

53.2 KB | W: | H:

expansions/pics/40009286.jpg

17.6 KB | W: | H:

expansions/pics/40009286.jpg
expansions/pics/40009286.jpg
expansions/pics/40009286.jpg
expansions/pics/40009286.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/60001009.jpg

12.2 KB | W: | H:

expansions/pics/60001009.jpg

810 KB | W: | H:

expansions/pics/60001009.jpg
expansions/pics/60001009.jpg
expansions/pics/60001009.jpg
expansions/pics/60001009.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910112.jpg

45.3 KB | W: | H:

expansions/pics/9910112.jpg

47.1 KB | W: | H:

expansions/pics/9910112.jpg
expansions/pics/9910112.jpg
expansions/pics/9910112.jpg
expansions/pics/9910112.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910115.jpg

39.9 KB | W: | H:

expansions/pics/9910115.jpg

46.3 KB | W: | H:

expansions/pics/9910115.jpg
expansions/pics/9910115.jpg
expansions/pics/9910115.jpg
expansions/pics/9910115.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910123.jpg

39.2 KB | W: | H:

expansions/pics/9910123.jpg

50.4 KB | W: | H:

expansions/pics/9910123.jpg
expansions/pics/9910123.jpg
expansions/pics/9910123.jpg
expansions/pics/9910123.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910127.jpg

42.6 KB | W: | H:

expansions/pics/9910127.jpg

53 KB | W: | H:

expansions/pics/9910127.jpg
expansions/pics/9910127.jpg
expansions/pics/9910127.jpg
expansions/pics/9910127.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910136.jpg

44.5 KB | W: | H:

expansions/pics/9910136.jpg

46.3 KB | W: | H:

expansions/pics/9910136.jpg
expansions/pics/9910136.jpg
expansions/pics/9910136.jpg
expansions/pics/9910136.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910137.jpg

39.6 KB | W: | H:

expansions/pics/9910137.jpg

46.7 KB | W: | H:

expansions/pics/9910137.jpg
expansions/pics/9910137.jpg
expansions/pics/9910137.jpg
expansions/pics/9910137.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910139.jpg

37.8 KB | W: | H:

expansions/pics/9910139.jpg

46.2 KB | W: | H:

expansions/pics/9910139.jpg
expansions/pics/9910139.jpg
expansions/pics/9910139.jpg
expansions/pics/9910139.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910144.jpg

42.8 KB | W: | H:

expansions/pics/9910144.jpg

48.3 KB | W: | H:

expansions/pics/9910144.jpg
expansions/pics/9910144.jpg
expansions/pics/9910144.jpg
expansions/pics/9910144.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910152.jpg

46.1 KB | W: | H:

expansions/pics/9910152.jpg

48.7 KB | W: | H:

expansions/pics/9910152.jpg
expansions/pics/9910152.jpg
expansions/pics/9910152.jpg
expansions/pics/9910152.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910154.jpg

46.4 KB | W: | H:

expansions/pics/9910154.jpg

43.8 KB | W: | H:

expansions/pics/9910154.jpg
expansions/pics/9910154.jpg
expansions/pics/9910154.jpg
expansions/pics/9910154.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910161.jpg

45.9 KB | W: | H:

expansions/pics/9910161.jpg

46.1 KB | W: | H:

expansions/pics/9910161.jpg
expansions/pics/9910161.jpg
expansions/pics/9910161.jpg
expansions/pics/9910161.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910288.jpg

52.3 KB | W: | H:

expansions/pics/9910288.jpg

55.3 KB | W: | H:

expansions/pics/9910288.jpg
expansions/pics/9910288.jpg
expansions/pics/9910288.jpg
expansions/pics/9910288.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910289.jpg

55.2 KB | W: | H:

expansions/pics/9910289.jpg

45.4 KB | W: | H:

expansions/pics/9910289.jpg
expansions/pics/9910289.jpg
expansions/pics/9910289.jpg
expansions/pics/9910289.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910366.jpg

50.4 KB | W: | H:

expansions/pics/9910366.jpg

50.9 KB | W: | H:

expansions/pics/9910366.jpg
expansions/pics/9910366.jpg
expansions/pics/9910366.jpg
expansions/pics/9910366.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910379.jpg

51.4 KB | W: | H:

expansions/pics/9910379.jpg

51.4 KB | W: | H:

expansions/pics/9910379.jpg
expansions/pics/9910379.jpg
expansions/pics/9910379.jpg
expansions/pics/9910379.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/9910467.jpg

49 KB | W: | H:

expansions/pics/9910467.jpg

49 KB | W: | H:

expansions/pics/9910467.jpg
expansions/pics/9910467.jpg
expansions/pics/9910467.jpg
expansions/pics/9910467.jpg
  • 2-up
  • Swipe
  • Onion skin
local m=15000291
local cm=_G["c"..m]
cm.name="冥河再渡"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--cannot activate
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetCode(EFFECT_CANNOT_ACTIVATE)
e4:SetRange(LOCATION_FZONE)
e4:SetCondition(cm.cgcon)
e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e4:SetValue(cm.aclimit)
c:RegisterEffect(e4)
--disable
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetRange(LOCATION_FZONE)
e5:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e5:SetTarget(cm.cgtg)
e5:SetCondition(cm.cgcon)
e5:SetCode(EFFECT_DISABLE)
c:RegisterEffect(e5)
end
function cm.filter(c)
return c:IsFaceup() and c:IsType(TYPE_DUAL) and not c:IsDualState()
end
function cm.cgcon(e)
local c=e:GetHandler()
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,3,nil)
end
function cm.cgtg(e,c)
return bit.band(c:GetType(),TYPE_EFFECT)~=0 and bit.band(c:GetType(),TYPE_DUAL)==0 and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==0
end
function cm.aclimit(e,re,tp)
local c=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and bit.band(c:GetType(),TYPE_DUAL)==0 and bit.band(c:GetType(),TYPE_EFFECT)~=0 and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==0
end
\ No newline at end of file
--阿卡夏·轰击星
function c188827.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c188827.spcon)
e1:SetOperation(c188827.spop)
c:RegisterEffect(e1)
--Destroy
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c188827.dscon)
e2:SetOperation(c188827.dsop)
c:RegisterEffect(e2)
end
function c188827.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function c188827.spop(e,tp,eg,ep,ev,re,r,rp,c)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetTargetRange(1,0)
e1:SetTarget(c188827.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c188827.splimit(e,c)
return not c:IsRace(RACE_PSYCHO)
end
function c188827.ckfil(c)
return c:GetSummonLocation()==LOCATION_HAND and c:IsRace(RACE_PSYCHO)
end
function c188827.dscon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c188827.ckfil,1,e:GetHandler())
end
function c188827.dsop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(188827,0)) then
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Destroy(g,REASON_EFFECT)
end
end
--走向毁灭的异类
local m=30099900
local cm=_G["c"..m]
function cm.initial_effect(c)
--summon with 3 tribute
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_LIMIT_SUMMON_PROC)
e1:SetCondition(cm.ttcon)
e1:SetOperation(cm.ttop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_LIMIT_SET_PROC)
e2:SetCondition(cm.setcon)
c:RegisterEffect(e2)
--summon
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(cm.efilter)
c:RegisterEffect(e1)
--全抗
local e5=Effect.CreateEffect(c)
e5:SetCategory(CATEGORY_DAMAGE)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e5:SetCode(EVENT_PHASE+PHASE_END)
e5:SetProperty(EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetTarget(cm.destg)
e5:SetOperation(cm.desop)
c:RegisterEffect(e5)
--终结
end
function cm.ttcon(e,c,minc)
if c==nil then return true end
return minc<=3 and Duel.CheckTribute(c,3)
end
function cm.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectTribute(tp,c,3,3)
c:SetMaterial(g)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end
function cm.setcon(e,c,minc)
if not c then return true end
return false
end
function cm.efilter(e,te)
return te:GetOwner()~=e:GetOwner()
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,e:GetHandler(),1,0,0)
end
function cm.filter(c,lp)
return c:GetAttack()>=0 and c:GetDefense()>=0 and Duel.SetLP(tp,Duel.GetLP(tp)-tc:GetAttack())==8000
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() and Duel.Remove(e:GetHandler(),POS_FACEDOWN,REASON_EFFECT)~=0 then
Duel.BreakEffect()
Duel.SetLP(tp,Duel.GetLP(tp)-(c:GetAttack()+c:GetDefense()))
end
end
--睿智之蓝 LV5 --苍之战士 睿智宙蓝
function c40006762.initial_effect(c) local m=40006762
--special summon local cm=_G["c"..m]
cm.named_with_blaucavalier=1
function cm.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40006762,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetRange(LOCATION_HAND) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCountLimit(1,m)
e1:SetCountLimit(1,40006762) e1:SetTarget(cm.sptg)
e1:SetCondition(c40006762.sccon) e1:SetOperation(cm.spop)
e1:SetTarget(c40006762.sctg) c:RegisterEffect(e1)
e1:SetOperation(c40006762.scop) local e2=e1:Clone()
c:RegisterEffect(e1) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(40006762,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c40006762.spcon)
e2:SetCost(c40006762.spcost)
e2:SetTarget(c40006762.sptg)
e2:SetOperation(c40006762.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--special summon --get effect
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(40006762,2)) e3:SetDescription(aux.Stringid(m,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetCode(EVENT_PHASE+PHASE_BATTLE_START)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE) e3:SetCondition(cm.mtcon)
e3:SetCountLimit(1,40009063) e3:SetTarget(cm.mttg)
e3:SetTarget(c40006762.sltg) e3:SetOperation(cm.mtop)
e3:SetOperation(c40006762.slop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c40006762.scfilter(c,tp) function cm.blaucavalier(c)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsControler(tp) local m=_G["c"..c:GetCode()]
return m and m.named_with_blaucavalier
end end
function c40006762.sccon(e,tp,eg,ep,ev,re,r,rp) function cm.spfilter(c,e,tp)
return eg:IsExists(c40006762.scfilter,1,nil,tp) return cm.blaucavalier(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and c:IsType(TYPE_TUNER) and not c:IsLevel(8)
end end
function c40006762.sctg(e,tp,eg,ep,ev,re,r,rp,chk) 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,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and Duel.IsExistingTarget(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
end local g=Duel.SelectTarget(tp,cm.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
function c40006762.scop(e,tp,eg,ep,ev,re,r,rp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
c40006762.lvupcount=1 function cm.spop(e,tp,eg,ep,ev,re,r,rp)
c40006762.lvup={40006763} local tc=Duel.GetFirstTarget()
function c40006762.spcon(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then
return tp==Duel.GetTurnPlayer() and e:GetHandler():IsLevelAbove(8) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end
end end
function c40006762.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.mtcon(e,tp,eg,ep,ev,re,r,rp)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end return e:GetHandler():GetOriginalRace()==RACE_MACHINE
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c40006762.spfilter(c,e,tp) function cm.mtfilter(c)
return c:IsCode(40006763) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) return c:IsType(TYPE_XYZ) and c:IsCanOverlay()
end end
function c40006762.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.mttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return e:GetHandler():IsType(TYPE_XYZ)
and Duel.IsExistingMatchingCard(c40006762.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(cm.mtfilter,tp,LOCATION_EXTRA,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c40006762.spop(e,tp,eg,ep,ev,re,r,rp) function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if not c:IsRelateToEffect(e) then return end
local g=Duel.SelectMatchingCard(tp,c40006762.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local tc=g:GetFirst() local g=Duel.SelectMatchingCard(tp,cm.mtfilter,tp,LOCATION_EXTRA,0,1,1,nil)
if tc then if g:GetCount()>0 then
Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP) Duel.Overlay(c,g)
tc:CompleteProcedure()
end end
end end
function c40006762.slfilter(c,e,tp)
return c:IsLevelBelow(3) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0xf24)
end
function c40006762.sltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c40006762.slfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c40006762.slfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c40006762.slfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function c40006762.slop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE)
e2:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e2)
local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DISABLE_EFFECT)
e3:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e3)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetValue(tc:GetLevel())
e1:SetReset(RESET_EVENT+0x1ff0000)
e:GetHandler():RegisterEffect(e1)
end
\ No newline at end of file
--睿智之蓝 LV11 --苍之战士 行星宙蓝
function c40006764.initial_effect(c) local m=40006764
local cm=_G["c"..m]
cm.named_with_blaucavalier=1
function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--spsummon limit --spsummon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--negate activate --special summon rule
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_EXTRA)
e2:SetCondition(cm.con)
e2:SetOperation(cm.op)
c:RegisterEffect(e2)
--tohand
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(40006764,2)) e3:SetDescription(aux.Stringid(m,0))
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e3:SetCategory(CATEGORY_TOHAND+CATEGORY_HANDES)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetCondition(c40006764.oncon) e3:SetCountLimit(1,m)
e3:SetTarget(c40006764.target) e3:SetTarget(cm.thtg)
e3:SetOperation(c40006764.operation) e3:SetOperation(cm.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
-- --banish
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e0:SetCode(EVENT_CHAINING)
e0:SetRange(LOCATION_MZONE)
e0:SetOperation(aux.chainreg)
c:RegisterEffect(e0)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_CHAIN_SOLVED)
e2:SetOperation(c40006764.lvop)
c:RegisterEffect(e2)
--redirect
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetDescription(aux.Stringid(m,1))
e4:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_IGNORE_IMMUNE) e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetCode(EFFECT_TO_GRAVE_REDIRECT) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetRange(LOCATION_MZONE) e4:SetCode(EVENT_DAMAGE_STEP_END)
e4:SetCondition(c40006764.excon) e4:SetCountLimit(1,m+1)
e4:SetTarget(c40006764.extg) e4:SetCost(cm.cost)
e4:SetTargetRange(0xff,0xff) e4:SetTarget(cm.sptg)
e4:SetValue(LOCATION_REMOVED) e4:SetOperation(cm.spop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--activate limit
local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(40006764,1))
e6:SetCategory(CATEGORY_LVCHANGE)
e6:SetType(EFFECT_TYPE_QUICK_O)
e6:SetCode(EVENT_FREE_CHAIN)
e6:SetRange(LOCATION_MZONE)
e6:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e6:SetCountLimit(1)
e6:SetCondition(c40006764.exccon)
e6:SetOperation(c40006764.actop)
c:RegisterEffect(e6)
--negate
local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(40006764,0))
e7:SetCategory(CATEGORY_NEGATE+CATEGORY_REMOVE+CATEGORY_LVCHANGE)
e7:SetType(EFFECT_TYPE_QUICK_O)
e7:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e7:SetCode(EVENT_CHAINING)
e7:SetRange(LOCATION_MZONE)
e7:SetCondition(c40006764.negcon)
e7:SetTarget(c40006764.negtg)
e7:SetOperation(c40006764.negop)
c:RegisterEffect(e7)
end end
c40006764.lvupcount=1 function cm.matfilter(c)
c40006764.lvup={40006763} return c:IsCanOverlay() and c:IsType(TYPE_TUNER) and c:IsLevelAbove(1) and c:IsFaceup()
c40006764.lvdncount=2
c40006764.lvdn={40006762,40006763}
function c40006764.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=re:GetHandler()
if re:IsActiveType(TYPE_MONSTER) and c~=e:GetHandler() and e:GetHandler():GetFlagEffect(1)>0 and e:GetHandler():IsFaceup() then
local e4=Effect.CreateEffect(e:GetHandler())
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_UPDATE_LEVEL)
e4:SetValue(1)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
e:GetHandler():RegisterEffect(e4)
end
end end
function c40006764.excon(e) function cm.gcheck(g,tp,c)
return e:GetHandler():IsLevelAbove(13) return g:CheckWithSumEqual(Card.GetLevel,8,2,2) and Duel.GetLocationCountFromEx(tp,tp,g,c)>0
end end
function c40006764.extg(e,c) function cm.con(e,c,tp)
return c:GetOwner()~=e:GetHandlerPlayer() local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
return g:CheckSubGroup(cm.gcheck,2,2,tp,c)
end end
function c40006764.exccon(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
return e:GetHandler():IsLevelAbove(20) and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
function c40006764.negcon(e,tp,eg,ep,ev,re,r,rp) local matg=g:SelectSubGroup(tp,cm.gcheck,false,2,2,tp,c)
local c=e:GetHandler() local og = Group.CreateGroup()
return not c:IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev) and e:GetHandler():IsLevelAbove(16) for tc in aux.Next(matg) do
end og:Merge(tc:GetOverlayGroup())
function c40006764.negtg(e,tp,eg,ep,ev,re,r,rp,chk) end
if chk==0 then return re:GetHandler():IsAbleToRemove() end if #og>0 then
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SendtoGrave(og,REASON_RULE)
if re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end end
Duel.Overlay(c,matg)
end end
function c40006764.negop(e,tp,eg,ep,ev,re,r,rp) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and c:IsRelateToEffect(e) then if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) end
local e2=Effect.CreateEffect(c) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
e2:SetType(EFFECT_TYPE_SINGLE) local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,1,nil)
e2:SetCode(EFFECT_UPDATE_LEVEL) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
e2:SetValue(-4) Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1)
e2:SetReset(RESET_EVENT+0x1ff0000) end
c:RegisterEffect(e2) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if Duel.SendtoHand(tc,nil,REASON_EFFECT)>0 and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 then
Duel.BreakEffect()
local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
local sg=g:RandomSelect(1-tp,1)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
end
end end
end end
function c40006764.actop(e,tp,eg,ep,ev,re,r,rp) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
local e3=Effect.CreateEffect(e:GetHandler()) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EFFECT_CANNOT_ACTIVATE)
e3:SetTargetRange(0,1)
e3:SetValue(c40006764.actlimit)
e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_UPDATE_LEVEL)
e4:SetValue(-5)
e4:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(e4)
end end
function c40006764.actlimit(e,re,tp) function cm.blaucavalier(c)
return not re:GetHandler():IsImmuneToEffect(e) local m=_G["c"..c:GetCode()]
return m and m.named_with_blaucavalier
end end
function c40006764.oncon(e,tp,eg,ep,ev,re,r,rp) function cm.filter(c,e,tp,mc)
if not re then return false end return c:IsRank(11) and cm.blaucavalier(c)
local rc=re:GetHandler() and mc:IsCanBeXyzMaterial(c)
return rc:IsCode(40006763) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function c40006764.target(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.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,e:GetHandler()) end local c=e:GetHandler()
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,e:GetHandler()) if chk==0 then return aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c40006764.operation(e,tp,eg,ep,ev,re,r,rp) function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,e:GetHandler()) local c=e:GetHandler()
Duel.Destroy(g,REASON_EFFECT) if c:IsFaceup() and c:IsRelateToEffect(e) and c:IsControler(tp) and not c:IsImmuneToEffect(e)
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,c)
local tc=g:GetFirst()
if tc then
local mg=c:GetOverlayGroup()
if mg:GetCount()~=0 then
Duel.Overlay(tc,mg)
end
tc:SetMaterial(Group.FromCards(c))
Duel.Overlay(tc,Group.FromCards(c))
Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)
tc:CompleteProcedure()
end
end
end end
\ No newline at end of file
--苍之战士 银河宙蓝
local m=40006766
local cm=_G["c"..m]
cm.named_with_blaucavalier=1
function cm.initial_effect(c)
c:EnableReviveLimit()
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
c:RegisterEffect(e1)
--special summon rule
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_EXTRA)
e2:SetCondition(cm.con)
e2:SetOperation(cm.op)
c:RegisterEffect(e2)
--disable
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_DISABLE)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetTarget(cm.distg)
c:RegisterEffect(e3)
--banish
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(m,0))
e4:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_DAMAGE_STEP_END)
e4:SetCountLimit(1,m)
e4:SetTarget(cm.rmtg)
e4:SetOperation(cm.rmop)
c:RegisterEffect(e4)
end
function cm.matfilter(c)
return c:IsCanOverlay() and c:IsType(TYPE_TUNER) and c:IsLevelAbove(1) and c:IsFaceup()
end
function cm.gcheck(g,tp,c)
return g:CheckWithSumEqual(Card.GetLevel,11,2,2) and Duel.GetLocationCountFromEx(tp,tp,g,c)>0
end
function cm.con(e,c,tp)
local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
return g:CheckSubGroup(cm.gcheck,2,2,tp,c)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local matg=g:SelectSubGroup(tp,cm.gcheck,false,2,2,tp,c)
local og = Group.CreateGroup()
for tc in aux.Next(matg) do
og:Merge(tc:GetOverlayGroup())
end
if #og>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,matg)
end
function cm.distg(e,c)
return c:GetSummonLocation()==LOCATION_EXTRA and c:IsLevelAbove(1)
end
function cm.rmfilter(c)
return c:IsType(TYPE_XYZ) and c:IsAbleToRemove()
end
function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetOverlayGroup():IsExists(cm.rmfilter,1,nil) end
local g=e:GetHandler():GetOverlayGroup():IsExists(cm.rmfilter,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end
function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
local lg=e:GetHandler():GetOverlayGroup()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=lg:FilterSelect(tp,cm.rmfilter,1,1,nil,e,tp)
if #g==0 then return end
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local c=e:GetHandler()
local sc=g:GetFirst()
if sc:IsLocation(LOCATION_REMOVED) and c:IsRelateToEffect(e) and c:IsFaceup() and sc:IsFaceup() and c:IsControler(tp)
and c:IsCanBeXyzMaterial(sc) and sc:IsCanBeSpecialSummoned(e,0,tp,true,false)
and Duel.GetLocationCountFromEx(tp,tp,c,sc)>0
and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
local mg=c:GetOverlayGroup()
if mg:GetCount()~=0 then
Duel.Overlay(sc,mg)
end
sc:SetMaterial(Group.FromCards(c))
Duel.Overlay(sc,Group.FromCards(c))
Duel.SpecialSummon(sc,0,tp,tp,true,false,POS_FACEUP)
sc:CompleteProcedure()
end
end
--睿智之蓝 LV3 --苍之战士 门徒宙蓝
function c40006826.initial_effect(c) local m=40006826
--search S/T local cm=_G["c"..m]
cm.named_with_blaucavalier=1
function cm.initial_effect(c)
--search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(40006826,1)) e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetRange(LOCATION_HAND) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,40006826) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCost(c40006826.cost) e1:SetCountLimit(1,m)
e1:SetTarget(c40006826.sptg) e1:SetTarget(cm.tg)
e1:SetOperation(c40006826.spop) e1:SetOperation(cm.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon local e2=e1:Clone()
local e2=Effect.CreateEffect(c) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetCountLimit(1,40006826)
e2:SetCondition(aux.exccon)
e2:SetTarget(c40006826.target)
e2:SetOperation(c40006826.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end --activate limit
function c40006826.cost(e,tp,eg,ep,ev,re,r,rp,chk) local e3=Effect.CreateEffect(c)
local c=e:GetHandler() e3:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_FIELD)
if chk==0 then return c:IsDiscardable() end e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD) e3:SetCode(EFFECT_CANNOT_ACTIVATE)
end e3:SetRange(LOCATION_MZONE)
function c40006826.filter(c,e,tp) e3:SetTargetRange(0,1)
return c:IsCode(40006762) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) e3:SetCondition(cm.xmatcon)
end e3:SetValue(1)
function c40006826.sptg(e,tp,eg,ep,ev,re,r,rp,chk) c:RegisterEffect(e3)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
and Duel.IsExistingMatchingCard(c40006826.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end function cm.blaucavalier(c)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) local m=_G["c"..c:GetCode()]
end return m and m.named_with_blaucavalier
function c40006826.spop(e,tp,eg,ep,ev,re,r,rp) end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end function cm.filter(c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) return not c:IsLevel(3) and cm.blaucavalier(c) and c:IsType(TYPE_TUNER) and c:IsAbleToHand()
local g=Duel.SelectMatchingCard(tp,c40006826.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp) end
function cm.tg(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
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SendtoHand(g,nil,REASON_EFFECT)
end Duel.ConfirmCards(1-tp,g)
end
function c40006826.filter1(c,e,tp,lv)
local clv=c:GetLevel()
return clv>0 and c:IsType(TYPE_TUNER) and c:IsAbleToRemove()
and Duel.IsExistingMatchingCard(c40006826.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,lv+clv)
end
function c40006826.filter2(c,e,tp,lv)
return c:GetLevel()==lv and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c40006826.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c40006826.filter1(chkc,e,tp,e:GetHandler():GetLevel()) end
if chk==0 then return Duel.GetLocationCountFromEx(tp)>0 and e:GetHandler():IsAbleToHand()
and Duel.IsExistingTarget(c40006826.filter1,tp,LOCATION_GRAVE,0,1,nil,e,tp,e:GetHandler():GetLevel()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c40006826.filter1,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,e:GetHandler():GetLevel())
g:AddCard(e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,2,tp,LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c40006826.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if not c:IsRelateToEffect(e) or not tc:IsRelateToEffect(e) then return end
local lv=c:GetLevel()+tc:GetLevel()
local g=Group.FromCards(c,tc)
if Duel.Remove(g,POS_FACEUP,REASON_EFFECT)==2 then
if Duel.GetLocationCountFromEx(tp)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,c40006826.filter2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,lv)
if sg:GetCount()>0 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
end end
end end
function cm.xmatcon(e)
local ph=Duel.GetCurrentPhase()
return e:GetHandler():GetOriginalRace()==RACE_MACHINE and (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE)
end
\ No newline at end of file
--苍之战士 装甲宙蓝
local m=40006828
local cm=_G["c"..m]
cm.named_with_blaucavalier=1
function cm.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1,m)
e1:SetRange(LOCATION_ONFIELD+LOCATION_HAND)
e1:SetCost(cm.spcost1)
e1:SetTarget(cm.sptg1)
e1:SetOperation(cm.spop1)
c:RegisterEffect(e1)
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,m+1)
e2:SetCost(cm.spcost2)
e2:SetTarget(cm.sptg2)
e2:SetOperation(cm.spop2)
c:RegisterEffect(e2)
end
function cm.blaucavalier(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_blaucavalier
end
function cm.cfilter1(c,tp)
return c:IsType(TYPE_TUNER) and c:IsAbleToGraveAsCost() and (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and Duel.GetMZoneCount(tp,c)>0
end
function cm.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter1,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler(),tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.cfilter1,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,e:GetHandler(),tp)
g:Merge(c)
Duel.SendtoGrave(g,REASON_COST)
end
function cm.spfilter1(c,e,tp)
return c:IsLevel(8) and cm.blaucavalier(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsType(TYPE_TUNER)
end
function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spfilter1,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_DECK)
end
function cm.spop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter1),tp,LOCATION_GRAVE+LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
function cm.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsType,1,nil,TYPE_TUNER) end
local g=Duel.SelectReleaseGroup(tp,Card.IsType,1,1,nil,TYPE_TUNER)
Duel.Release(g,REASON_COST)
end
function cm.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end
function cm.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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