Commit 12d57463 authored by TanakaKotoha's avatar TanakaKotoha

Mercury233

parent 725b43f6
No preview for this file type
...@@ -24,7 +24,7 @@ function c22000230.initial_effect(c) ...@@ -24,7 +24,7 @@ function c22000230.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c22000230.filter(c,e,tp,m1,m2,ft) function c22000230.filter(c,e,tp,m1,m2,ft)
if not c:IsSetCard(0xfff) or bit.band(c:GetType(),0x81)~=0x81 if not c:IsSetCard(0x9ff) or bit.band(c:GetType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c) local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c)
mg:Merge(m2) mg:Merge(m2)
...@@ -41,7 +41,7 @@ function c22000230.mfilterf(c,tp,mg,rc) ...@@ -41,7 +41,7 @@ function c22000230.mfilterf(c,tp,mg,rc)
else return false end else return false end
end end
function c22000230.mfilter(c) function c22000230.mfilter(c)
return c:GetLevel()>0 and c:IsSetCard(0xfff) and c:IsAbleToRemove() return c:GetLevel()>0 and c:IsSetCard(0x9ff) and c:IsAbleToRemove()
end end
function c22000230.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c22000230.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost()
...@@ -88,7 +88,7 @@ function c22000230.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,7 @@ function c22000230.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c22000230.filter0(c,e,tp) function c22000230.filter0(c,e,tp)
return c:IsSetCard(0xfff) and c:IsType(TYPE_RITUAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9ff) and c:IsType(TYPE_RITUAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c22000230.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22000230.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c22000230.filter0(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c22000230.filter0(chkc,e,tp) end
......
...@@ -32,7 +32,7 @@ function c22000240.indcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c22000240.indcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c22000240.filter(c) function c22000240.filter(c)
return c:IsFaceup() and c:IsSetCard(0xfff) return c:IsFaceup() and c:IsSetCard(0x9ff)
end end
function c22000240.indtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22000240.indtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c22000240.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c22000240.filter(chkc) end
......
...@@ -32,7 +32,7 @@ function c22000250.indcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c22000250.indcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c22000250.filter(c) function c22000250.filter(c)
return c:IsFaceup() and c:IsSetCard(0xfff) return c:IsFaceup() and c:IsSetCard(0x9ff)
end end
function c22000250.indtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22000250.indtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c22000250.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c22000250.filter(chkc) end
......
...@@ -36,7 +36,7 @@ function c22000270.adcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,7 +36,7 @@ function c22000270.adcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c22000270.filter(c) function c22000270.filter(c)
return c:IsFaceup() and c:IsSetCard(0xfff) return c:IsFaceup() and c:IsSetCard(0x9ff)
end end
function c22000270.adtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22000270.adtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c22000270.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c22000270.filter(chkc) end
......
...@@ -30,7 +30,7 @@ function c22000280.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c22000280.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c22000280.cfilter,tp,0,LOCATION_MZONE,1,nil) return Duel.IsExistingMatchingCard(c22000280.cfilter,tp,0,LOCATION_MZONE,1,nil)
end end
function c22000280.filter(c,e,tp,m,ft) function c22000280.filter(c,e,tp,m,ft)
if not c:IsSetCard(0xfff) or bit.band(c:GetType(),0x81)~=0x81 if not c:IsSetCard(0x9ff) or bit.band(c:GetType(),0x81)~=0x81
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local mg=m:Filter(Card.IsCanBeRitualMaterial,c,c) local mg=m:Filter(Card.IsCanBeRitualMaterial,c,c)
if ft>0 then if ft>0 then
......
...@@ -23,7 +23,7 @@ function c22000290.initial_effect(c) ...@@ -23,7 +23,7 @@ function c22000290.initial_effect(c)
end end
function c22000290.rlevel(e,c) function c22000290.rlevel(e,c)
local lv=e:GetHandler():GetLevel() local lv=e:GetHandler():GetLevel()
if c:IsSetCard(0xfff) then if c:IsSetCard(0x9ff) then
local clv=c:GetLevel() local clv=c:GetLevel()
return lv*65536+clv return lv*65536+clv
else return lv end else return lv end
......
...@@ -104,16 +104,16 @@ function card.filter(c) ...@@ -104,16 +104,16 @@ function card.filter(c)
return c:IsType(TYPE_MONSTER) return c:IsType(TYPE_MONSTER)
end end
function card.tfilter(c) function card.tfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.dfilter(c) function card.dfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.cfilter(c) function card.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable()
end end
function card.checkfilter(c) function card.checkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.fafilter(c) function card.fafilter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -104,14 +104,14 @@ function card.filter(c) ...@@ -104,14 +104,14 @@ function card.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function card.tfilter(c) function card.tfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.dfilter(c) function card.dfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.cfilter(c) function card.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable()
end end
function card.checkfilter(c) function card.checkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
\ No newline at end of file
...@@ -103,14 +103,14 @@ function card.filter(c) ...@@ -103,14 +103,14 @@ function card.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function card.tfilter(c) function card.tfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.dfilter(c) function card.dfilter(c)
return c:IsSetCard(0x721) and not c:IsCode(id) and c:IsAbleToHand() return c:IsSetCard(0x9ec) and not c:IsCode(id) and c:IsAbleToHand()
end end
function card.cfilter(c) function card.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable()
end end
function card.checkfilter(c) function card.checkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
\ No newline at end of file
...@@ -16,7 +16,7 @@ function card.initial_effect(c) ...@@ -16,7 +16,7 @@ function card.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x721)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x9ec))
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetValue(300) e2:SetValue(300)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -40,7 +40,7 @@ function card.initial_effect(c) ...@@ -40,7 +40,7 @@ function card.initial_effect(c)
end end
function card.thfilter(c) function card.thfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x721) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x9ec) and c:IsAbleToHand()
end end
function card.activate(e,tp,eg,ep,ev,re,r,rp) function card.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
...@@ -53,7 +53,7 @@ function card.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function card.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function card.thfilter1(c,tp) function card.thfilter1(c,tp)
return c:IsSetCard(0x721) and c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_MZONE+LOCATION_HAND) and c:GetPreviousControler()==tp return c:IsSetCard(0x9ec) and c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_MZONE+LOCATION_HAND) and c:GetPreviousControler()==tp
end end
function card.thcon(e,tp,eg,ep,ev,re,r,rp) function card.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(card.thfilter1,1,nil,tp) return eg:IsExists(card.thfilter1,1,nil,tp)
......
...@@ -37,7 +37,7 @@ function card.initial_effect(c) ...@@ -37,7 +37,7 @@ function card.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function card.tdfilter(c) function card.tdfilter(c)
return c:IsSetCard(0x721) and c:IsAbleToDeck() return c:IsSetCard(0x9ec) and c:IsAbleToDeck()
end end
function card.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function card.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and card.tdfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and card.tdfilter(chkc) end
...@@ -63,7 +63,7 @@ function card.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,7 +63,7 @@ function card.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function card.thfilter(c) function card.thfilter(c)
return c:IsSetCard(0x721) and c:IsAbleToHand() return c:IsSetCard(0x9ec) and c:IsAbleToHand()
end end
function card.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function card.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
......
...@@ -36,7 +36,7 @@ end ...@@ -36,7 +36,7 @@ end
--Indestructable Set Target -- Normal Summoned and Is Dragonlord --Indestructable Set Target -- Normal Summoned and Is Dragonlord
function card.indtg(e,c) function card.indtg(e,c)
return c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsSetCard(0x721) return c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsSetCard(0x9ec)
end end
--Indestructable Set Operation -- Prevent 1 destruction --Indestructable Set Operation -- Prevent 1 destruction
function card.indct(e,re,r,rp) function card.indct(e,re,r,rp)
...@@ -69,9 +69,9 @@ end ...@@ -69,9 +69,9 @@ end
--Filters --Filters
--Draw effect discard cost - Can it be sent and is it Dragonlord -- LEGACY --Draw effect discard cost - Can it be sent and is it Dragonlord -- LEGACY
function card.cfilter(c) function card.cfilter(c)
return c:IsSetCard(0x721) and c:IsAbleToGraveAsCost() return c:IsSetCard(0x9ec) and c:IsAbleToGraveAsCost()
end end
--Sp effect, Is it a Dragonlord Monster that can be Special Summoned --Sp effect, Is it a Dragonlord Monster that can be Special Summoned
function card.filter(c,e,tp) function card.filter(c,e,tp)
return c:IsSetCard(0x721) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9ec) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
\ No newline at end of file
...@@ -103,14 +103,14 @@ function card.filter(c) ...@@ -103,14 +103,14 @@ function card.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function card.tfilter(c) function card.tfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
function card.dfilter(c) function card.dfilter(c)
return c:IsSetCard(0x721) and not c:IsCode(id) and c:IsAbleToHand() return c:IsSetCard(0x9ec) and not c:IsCode(id) and c:IsAbleToHand()
end end
function card.cfilter(c) function card.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_DRAGON) and not c:IsCode(id) and c:IsReleasable()
end end
function card.checkfilter(c) function card.checkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x721) return c:IsFaceup() and c:IsSetCard(0x9ec)
end end
\ No newline at end of file
...@@ -48,7 +48,7 @@ end ...@@ -48,7 +48,7 @@ end
--Filters --Filters
--Is it a face-up Dragonlord Monster? --Is it a face-up Dragonlord Monster?
function card.isdragonlordfilter(c,e,tp) function card.isdragonlordfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x721) and c:IsType(TYPE_MONSTER) and c:IsControler(tp) return c:IsFaceup() and c:IsSetCard(0x9ec) and c:IsType(TYPE_MONSTER) and c:IsControler(tp)
end end
--Not really sure to be honest --Not really sure to be honest
function card.efilter(e,re) function card.efilter(e,re)
...@@ -56,5 +56,5 @@ function card.efilter(e,re) ...@@ -56,5 +56,5 @@ function card.efilter(e,re)
end end
--Is it a Dracolord Card? --Is it a Dracolord Card?
function card.filter(c,e,tp) function card.filter(c,e,tp)
return c:IsSetCard(0x721) and not c:IsCode(id) return c:IsSetCard(0x9ec) and not c:IsCode(id)
end end
\ No newline at end of file
...@@ -88,10 +88,10 @@ end ...@@ -88,10 +88,10 @@ end
---------------------------------------------------- ----------------------------------------------------
--Is its a Dracolord Monster...and...something else im not sure of, you can probably delete it? w/e basically saying, is a "Dragonlord" monster you control and something about a sequence, no clue here. --Is its a Dracolord Monster...and...something else im not sure of, you can probably delete it? w/e basically saying, is a "Dragonlord" monster you control and something about a sequence, no clue here.
function card.hspfilter(c,ft,tp) function card.hspfilter(c,ft,tp)
return c:IsSetCard(0x721) return c:IsSetCard(0x9ec)
and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup())
end end
-- Checking to see who controlled the sent "Dragonlord" Monster, where it was sent from and whether or not it was a "Dragonlord" Monster at all. -- Checking to see who controlled the sent "Dragonlord" Monster, where it was sent from and whether or not it was a "Dragonlord" Monster at all.
function card.spcfilter(c,tp) function card.spcfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsSetCard(0x721) and c:IsType(TYPE_MONSTER) return c:GetPreviousControler()==tp and c:IsSetCard(0x9ec) and c:IsType(TYPE_MONSTER)
end end
...@@ -37,7 +37,7 @@ function cm.initial_effect(c) ...@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end end
-- SpecialSummon from hand -- SpecialSummon from hand
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x9ed) and c:IsType(TYPE_XYZ)
end end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end
...@@ -72,7 +72,7 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.tgfilter(c) function cm.tgfilter(c)
return c:IsSetCard(0xffd) and c:IsAbleToGrave() return c:IsSetCard(0x9ed) and c:IsAbleToGrave()
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -37,7 +37,7 @@ function cm.initial_effect(c) ...@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end end
-- SpecialSummon from hand -- SpecialSummon from hand
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x9ed) and c:IsType(TYPE_XYZ)
end end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end
...@@ -77,7 +77,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_OVERLAY) return c:IsPreviousLocation(LOCATION_OVERLAY)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0xffd) return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x9ed)
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tgtg(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
......
...@@ -36,7 +36,7 @@ function cm.initial_effect(c) ...@@ -36,7 +36,7 @@ function cm.initial_effect(c)
end end
-- SpecialSummon from hand -- SpecialSummon from hand
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -54,7 +54,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x9ed) and c:IsType(TYPE_XYZ)
end end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end
......
...@@ -39,7 +39,7 @@ function cm.initial_effect(c) ...@@ -39,7 +39,7 @@ function cm.initial_effect(c)
end end
-- SpecialSummon from hand -- SpecialSummon from hand
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -57,7 +57,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x9ed) and c:IsType(TYPE_XYZ)
end end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end
...@@ -79,7 +79,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_OVERLAY) return c:IsPreviousLocation(LOCATION_OVERLAY)
end end
function cm.filter1(c) function cm.filter1(c)
return c:IsSetCard(0xffd) and c:IsAbleToDeck() return c:IsSetCard(0x9ed) and c:IsAbleToDeck()
end end
function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.filter1(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.filter1(chkc) end
......
...@@ -39,7 +39,7 @@ function cm.initial_effect(c) ...@@ -39,7 +39,7 @@ function cm.initial_effect(c)
end end
-- SpecialSummon from hand -- SpecialSummon from hand
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -57,7 +57,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x9ed) and c:IsType(TYPE_XYZ)
end end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end
...@@ -101,5 +101,5 @@ function cm.filter1(c) ...@@ -101,5 +101,5 @@ function cm.filter1(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsType(TYPE_XYZ)
end end
function cm.filter2(c) function cm.filter2(c)
return c:IsSetCard(0xffd) and not c:IsCode(m) return c:IsSetCard(0x9ed) and not c:IsCode(m)
end end
\ No newline at end of file
...@@ -26,7 +26,7 @@ function cm.initial_effect(c) ...@@ -26,7 +26,7 @@ function cm.initial_effect(c)
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -17,13 +17,13 @@ function c88880006.initial_effect(c) ...@@ -17,13 +17,13 @@ function c88880006.initial_effect(c)
end end
function c88880006.mfilter(c) function c88880006.mfilter(c)
return c:IsSetCard(0xffd) and not c:IsCode(88880006) return c:IsSetCard(0x9ed) and not c:IsCode(88880006)
end end
function c88880006.cfilter(c) function c88880006.cfilter(c)
return c:IsSetCard(0xffd) return c:IsSetCard(0x9ed)
end end
function c88880006.ovfilter(c) function c88880006.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and not c:IsCode(88880006) return c:IsFaceup() and c:IsSetCard(0x9ed) and not c:IsCode(88880006)
end end
function c88880006.xyzop(e,tp,chk) function c88880006.xyzop(e,tp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c88880006.cfilter,tp,LOCATION_HAND,0,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(c88880006.cfilter,tp,LOCATION_HAND,0,1,nil)
...@@ -39,7 +39,7 @@ function c88880006.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c88880006.tgcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_OVERLAY) return c:IsPreviousLocation(LOCATION_OVERLAY)
end end
function c88880006.filter(c) function c88880006.filter(c)
return c:IsSetCard(0xffd) and c:IsAbleToHand() return c:IsSetCard(0x9ed) and c:IsAbleToHand()
end end
function c88880006.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88880006.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c88880006.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c88880006.filter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -37,7 +37,7 @@ function cm.initial_effect(c) ...@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end end
-- SpecialSummon from hand -- SpecialSummon from hand
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0xffd) return c:IsFacedown() or not c:IsSetCard(0x9ed)
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 not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.matfilter(c) function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0xffd) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x9ed) and c:IsType(TYPE_XYZ)
end end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.matfilter(chkc) end
...@@ -77,7 +77,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_OVERLAY) return c:IsPreviousLocation(LOCATION_OVERLAY)
end end
function cm.filter(c,e,tp) function cm.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0xffd) and not c:IsCode(88880007) return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x9ed) and not c:IsCode(88880007)
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_DECK) and cm.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_DECK) and cm.filter(chkc,e,tp) end
......
...@@ -30,7 +30,7 @@ function c88880009.atkval(e,c) ...@@ -30,7 +30,7 @@ function c88880009.atkval(e,c)
end end
--filters --filters
function c88880009.mfilter(c) function c88880009.mfilter(c)
return c:IsSetCard(0xffd) return c:IsSetCard(0x9ed)
end end
function c88880009.ovfilter(c) function c88880009.ovfilter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -43,7 +43,7 @@ function cm.initial_effect(c) ...@@ -43,7 +43,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.mfilter(c) function cm.mfilter(c)
return c:IsSetCard(0xffd) return c:IsSetCard(0x9ed)
end end
function cm.filter(c,sp) function cm.filter(c,sp)
return c:GetSummonPlayer()==sp return c:GetSummonPlayer()==sp
......
...@@ -42,10 +42,10 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,10 +42,10 @@ function cm.matop(e,tp,eg,ep,ev,re,r,rp)
Duel.Overlay(tc,g) Duel.Overlay(tc,g)
end end
function cm.filter3(c) function cm.filter3(c)
return c:IsSetCard(0xffd) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x9ed) and c:IsType(TYPE_MONSTER)
end end
function cm.repfilter(c,tp) function cm.repfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xffd) return c:IsFaceup() and c:IsSetCard(0x9ed)
and c:IsControler(tp) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE) and c:IsControler(tp) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -34,7 +34,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,7 +34,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.filter(c) function cm.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xffd) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x9ed)
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
...@@ -66,7 +66,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsSetCard(0xffd) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x9ed) and c:IsAbleToRemoveAsCost()
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 Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler())
......
...@@ -17,7 +17,7 @@ function cm.initial_effect(c) ...@@ -17,7 +17,7 @@ function cm.initial_effect(c)
end end
function c88880210.mfilter(c) function c88880210.mfilter(c)
return c:IsSetCard(0xffd) return c:IsSetCard(0x9ed)
end end
function c88880210.ovfilter(c) function c88880210.ovfilter(c)
return c:IsFaceup() return c:IsFaceup()
...@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +35,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,1000) Duel.PayLPCost(tp,1000)
end end
function cm.filter(c) function cm.filter(c)
return c:IsSetCard(0xffd) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0x9ed) and c:IsAbleToHand() and c:IsType(TYPE_SPELL+TYPE_TRAP)
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
......
...@@ -42,7 +42,7 @@ function cm.initial_effect(c) ...@@ -42,7 +42,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function cm.mfilter(c) function cm.mfilter(c)
return c:IsSetCard(0xffd) return c:IsSetCard(0x9ed)
end end
function cm.atkval(e,c) function cm.atkval(e,c)
return c:GetOverlayCount()*500 return c:GetOverlayCount()*500
......
...@@ -3,7 +3,7 @@ local m=88880213 ...@@ -3,7 +3,7 @@ local m=88880213
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--Link summon --Link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0xffd),2,2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkSetCard,0x9ed),2,2)
c:EnableReviveLimit() c:EnableReviveLimit()
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD) e0:SetType(EFFECT_TYPE_FIELD)
...@@ -51,7 +51,7 @@ function cm.linkop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -51,7 +51,7 @@ function cm.linkop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g1,REASON_MATERIAL+REASON_LINK) Duel.SendtoGrave(g1,REASON_MATERIAL+REASON_LINK)
end end
function cm.thcfilter(c) function cm.thcfilter(c)
return c:IsSetCard(0xffd) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x9ed) and c:IsAbleToRemoveAsCost()
end end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thcfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thcfilter,tp,LOCATION_GRAVE,0,1,nil) end
...@@ -60,7 +60,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,7 +60,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(0xffd) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x9ed) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -81,7 +81,7 @@ function cm.bthcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -81,7 +81,7 @@ function cm.bthcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function cm.filter2(c) function cm.filter2(c)
return c:IsSetCard(0xffd) and c:IsAbleToHand() return c:IsSetCard(0x9ed) and c:IsAbleToHand()
end end
function cm.bthtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.bthtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_REMOVED,0,1,nil) end
......
...@@ -24,7 +24,7 @@ function cm.initial_effect(c) ...@@ -24,7 +24,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c88880223.thfilter(c) function c88880223.thfilter(c)
return c:IsSetCard(0xffd) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x9ed) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c88880223.activate(e,tp,eg,ep,ev,re,r,rp) function c88880223.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
...@@ -37,7 +37,7 @@ function c88880223.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c88880223.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c88880223.thfilter2(c,tp) function c88880223.thfilter2(c,tp)
return c:IsSetCard(0xffd) and c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_OVERLAY) return c:IsSetCard(0x9ed) and c:IsType(TYPE_MONSTER) and c:IsPreviousLocation(LOCATION_OVERLAY)
end end
function c88880223.thcon(e,tp,eg,ep,ev,re,r,rp) function c88880223.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c88880223.thfilter2,1,nil,tp) return eg:IsExists(c88880223.thfilter2,1,nil,tp)
......
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xffd)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x9ed))
e2:SetValue(200) e2:SetValue(200)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -38,7 +38,7 @@ function cm.initial_effect(c) ...@@ -38,7 +38,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function cm.thfilter1(c) function cm.thfilter1(c)
return c:IsSetCard(0xffd) and not c:IsType(TYPE_MONSTER+TYPE_FIELD) and c:IsAbleToHand() return c:IsSetCard(0x9ed) and not c:IsType(TYPE_MONSTER+TYPE_FIELD) and c:IsAbleToHand()
end end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_DECK,0,1,nil) end
...@@ -56,7 +56,7 @@ function cm.filter(c) ...@@ -56,7 +56,7 @@ function cm.filter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsType(TYPE_XYZ)
end end
function cm.filter3(c) function cm.filter3(c)
return c:IsSetCard(0xffd) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x9ed) and c:IsType(TYPE_MONSTER)
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_MZONE) and chkc:IsControler(tp) and cm.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.filter(chkc) end
......
...@@ -40,7 +40,7 @@ function cm.gycon(e) ...@@ -40,7 +40,7 @@ function cm.gycon(e)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsSetCard(0xffd) return c:IsSetCard(0x9ed)
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.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end
......
#222DIY #222DIY
#备注
#禁用0xff0-0xfff区间以保证Pro2上能正常运作
#芙兰 657556329 7 #芙兰 657556329 7
#is_named_with_cyberaqua 电子水蓝 #is_named_with_cyberaqua 电子水蓝
#is_named_with_PETS P.E.T.S. #is_named_with_PETS P.E.T.S.
...@@ -322,8 +325,8 @@ ...@@ -322,8 +325,8 @@
!setname 0x5495 玲珑术 !setname 0x5495 玲珑术
!setname 0x494 灵子殖装 !setname 0x494 灵子殖装
#烩焗 2510495719 220 0xfff #烩焗 2510495719 220 0x9f0-0x9ff
!setname 0xfff 从者 △ !setname 0x9ff 从者
#兔锅 1874883039 222 0x???-0x??? #兔锅 1874883039 222 0x???-0x???
#named_with_Valhalla 瓦尔哈拉 #named_with_Valhalla 瓦尔哈拉
...@@ -717,9 +720,9 @@ ...@@ -717,9 +720,9 @@
#葉月 ?????????? 876 0x???-0x??? #葉月 ?????????? 876 0x???-0x???
#Slient Knight 888 0xff0-0xfff #Slient Knight 888 0x9e0-0x9ef
!setname 0xffc 龙将 !setname 0x9ec 龙将
!setname 0xffd 迅刃机 !setname 0x9ed 迅刃机
#小鸟 ?????????? 889 0x960-0x96f #小鸟 ?????????? 889 0x960-0x96f
!setname 0x960 折幸 !setname 0x960 折幸
......
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