Commit 1f8614bc authored by DailyShana's avatar DailyShana

change RACE_CYBERS to RACE_CYBERSE

parent 5d680a10
...@@ -40,7 +40,7 @@ function c13536606.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -40,7 +40,7 @@ function c13536606.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local lg=c:GetMutualLinkedGroup() local lg=c:GetMutualLinkedGroup()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13536606.rfilter(chkc,tp,lg) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13536606.rfilter(chkc,tp,lg) end
if chk==0 then return Duel.IsExistingTarget(c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,lg) if chk==0 then return Duel.IsExistingTarget(c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,lg)
and Duel.IsPlayerCanSpecialSummonMonster(tp,13536607,0,0x4011,0,0,1,RACE_CYBERS,ATTRIBUTE_LIGHT) end and Duel.IsPlayerCanSpecialSummonMonster(tp,13536607,0,0x4011,0,0,1,RACE_CYBERSE,ATTRIBUTE_LIGHT) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=Duel.SelectTarget(tp,c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,lg) local rg=Duel.SelectTarget(tp,c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp,lg)
local ct=rg:GetFirst():GetLink() local ct=rg:GetFirst():GetLink()
...@@ -53,7 +53,7 @@ function c13536606.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c13536606.tkop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) and Duel.Release(tc,REASON_EFFECT)>0 then if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) and Duel.Release(tc,REASON_EFFECT)>0 then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<ct or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,59822133)) then return end if ft<ct or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,59822133)) then return end
if not Duel.IsPlayerCanSpecialSummonMonster(tp,13536607,0,0x4011,0,0,1,RACE_CYBERS,ATTRIBUTE_LIGHT) then return end if not Duel.IsPlayerCanSpecialSummonMonster(tp,13536607,0,0x4011,0,0,1,RACE_CYBERSE,ATTRIBUTE_LIGHT) then return end
for i=1,ct do for i=1,ct do
local token=Duel.CreateToken(tp,13536607) local token=Duel.CreateToken(tp,13536607)
Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -20,7 +20,7 @@ function c14505685.initial_effect(c) ...@@ -20,7 +20,7 @@ function c14505685.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c14505685.cfilter(c) function c14505685.cfilter(c)
return c:IsFacedown() or not c:IsRace(RACE_CYBERS) return c:IsFacedown() or not c:IsRace(RACE_CYBERSE)
end end
function c14505685.sprcon(e,c) function c14505685.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -30,7 +30,7 @@ function c14505685.sprcon(e,c) ...@@ -30,7 +30,7 @@ function c14505685.sprcon(e,c)
and not Duel.IsExistingMatchingCard(c14505685.cfilter,tp,LOCATION_MZONE,0,1,nil) and not Duel.IsExistingMatchingCard(c14505685.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c14505685.rcfilter(c) function c14505685.rcfilter(c)
return c:IsFaceup() and not c:IsRace(RACE_CYBERS) return c:IsFaceup() and not c:IsRace(RACE_CYBERSE)
end end
function c14505685.rctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c14505685.rctg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c14505685.rcfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c14505685.rcfilter(chkc) end
...@@ -44,7 +44,7 @@ function c14505685.rcop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c14505685.rcop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_RACE) e1:SetCode(EFFECT_CHANGE_RACE)
e1:SetValue(RACE_CYBERS) e1:SetValue(RACE_CYBERSE)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
......
...@@ -23,7 +23,7 @@ function c29716911.initial_effect(c) ...@@ -23,7 +23,7 @@ function c29716911.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c29716911.atkfilter(c) function c29716911.atkfilter(c)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) return c:IsFaceup() and c:IsRace(RACE_CYBERSE)
end end
function c29716911.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c29716911.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -17,7 +17,7 @@ function c32995276.initial_effect(c) ...@@ -17,7 +17,7 @@ function c32995276.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c32995276.matfilter(c) function c32995276.matfilter(c)
return c:IsLevelBelow(4) and c:IsRace(RACE_CYBERS) return c:IsLevelBelow(4) and c:IsRace(RACE_CYBERSE)
end end
function c32995276.cfilter(c,g) function c32995276.cfilter(c,g)
return g:IsContains(c) return g:IsContains(c)
......
--ハニーボット --ハニーボット
function c34472920.initial_effect(c) function c34472920.initial_effect(c)
--link summon --link summon
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERS),2,2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERSE),2,2)
c:EnableReviveLimit() c:EnableReviveLimit()
--cannot be target/battle indestructable --cannot be target/battle indestructable
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -26,11 +26,11 @@ function c35911108.initial_effect(c) ...@@ -26,11 +26,11 @@ function c35911108.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c35911108.atktg(e,c) function c35911108.atktg(e,c)
return c:IsRace(RACE_CYBERS) and c~=e:GetHandler() return c:IsRace(RACE_CYBERSE) and c~=e:GetHandler()
end end
function c35911108.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c35911108.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_CYBERS) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsRace,1,nil,RACE_CYBERSE) end
local sg=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_CYBERS) local sg=Duel.SelectReleaseGroup(tp,Card.IsRace,1,1,nil,RACE_CYBERSE)
Duel.Release(sg,REASON_COST) Duel.Release(sg,REASON_COST)
end end
function c35911108.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c35911108.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -46,7 +46,7 @@ function c36033786.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c36033786.posop(e,tp,eg,ep,ev,re,r,rp)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_PIERCE) e3:SetCode(EFFECT_PIERCE)
e3:SetTargetRange(LOCATION_MZONE,0) e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_CYBERS)) e3:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_CYBERSE))
e3:SetReset(RESET_PHASE+PHASE_END) e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
end end
......
...@@ -13,11 +13,11 @@ function c43839002.initial_effect(c) ...@@ -13,11 +13,11 @@ function c43839002.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c43839002.rmfilter(c,tp) function c43839002.rmfilter(c,tp)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) and c:IsAbleToRemove() and c:GetBaseAttack()>0 return c:IsFaceup() and c:IsRace(RACE_CYBERSE) and c:IsAbleToRemove() and c:GetBaseAttack()>0
and Duel.IsExistingMatchingCard(c43839002.thfilter,tp,LOCATION_DECK,0,1,nil,c) and Duel.IsExistingMatchingCard(c43839002.thfilter,tp,LOCATION_DECK,0,1,nil,c)
end end
function c43839002.thfilter(c,rc) function c43839002.thfilter(c,rc)
return c:IsRace(RACE_CYBERS) and c:GetAttack()<rc:GetBaseAttack() and c:IsAbleToHand() return c:IsRace(RACE_CYBERSE) and c:GetAttack()<rc:GetBaseAttack() and c:IsAbleToHand()
end end
function c43839002.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43839002.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c43839002.rmfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c43839002.rmfilter(chkc,tp) end
......
...@@ -23,7 +23,7 @@ function c44956694.initial_effect(c) ...@@ -23,7 +23,7 @@ function c44956694.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c44956694.thfilter(c) function c44956694.thfilter(c)
return c:IsRace(RACE_CYBERS) and c:IsAbleToHand() and not c:IsCode(44956694) return c:IsRace(RACE_CYBERSE) and c:IsAbleToHand() and not c:IsCode(44956694)
end end
function c44956694.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c44956694.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c44956694.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c44956694.thfilter(chkc) end
...@@ -42,7 +42,7 @@ function c44956694.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c44956694.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
end end
function c44956694.spfilter(c,e,tp) function c44956694.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsRace(RACE_CYBERS) and not c:IsCode(44956694) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsRace(RACE_CYBERSE) and not c:IsCode(44956694) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c44956694.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c44956694.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
......
...@@ -7,7 +7,7 @@ function c45778242.initial_effect(c) ...@@ -7,7 +7,7 @@ function c45778242.initial_effect(c)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCondition(c45778242.atkcon) e1:SetCondition(c45778242.atkcon)
e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_CYBERS)) e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_CYBERSE))
e1:SetValue(500) e1:SetValue(500)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
...@@ -26,7 +26,7 @@ function c45778242.atkcon(e) ...@@ -26,7 +26,7 @@ function c45778242.atkcon(e)
return Duel.GetTurnPlayer()==tp and e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL) return Duel.GetTurnPlayer()==tp and e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c45778242.repfilter(c,e) function c45778242.repfilter(c,e)
return (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsRace(RACE_CYBERS) return (c:IsFaceup() or c:IsLocation(LOCATION_HAND)) and c:IsRace(RACE_CYBERSE)
and c:IsDestructable(e) and not c:IsStatus(STATUS_DESTROY_CONFIRMED) and c:IsDestructable(e) and not c:IsStatus(STATUS_DESTROY_CONFIRMED)
end end
function c45778242.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c45778242.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -28,7 +28,7 @@ function c62306203.initial_effect(c) ...@@ -28,7 +28,7 @@ function c62306203.initial_effect(c)
end end
function c62306203.cfilter(c,tp) function c62306203.cfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and bit.band(c:GetPreviousTypeOnField(),TYPE_LINK)~=0 and bit.band(c:GetPreviousRaceOnField(),RACE_CYBERS)~=0 and bit.band(c:GetPreviousTypeOnField(),TYPE_LINK)~=0 and bit.band(c:GetPreviousRaceOnField(),RACE_CYBERSE)~=0
end end
function c62306203.spcon1(e,tp,eg,ep,ev,re,r,rp) function c62306203.spcon1(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and eg:IsExists(c62306203.cfilter,1,e:GetHandler(),tp) return rp==1-tp and eg:IsExists(c62306203.cfilter,1,e:GetHandler(),tp)
...@@ -52,7 +52,7 @@ function c62306203.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,7 +52,7 @@ function c62306203.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c62306203.costfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c62306203.costfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function c62306203.spfilter(c,e,tp) function c62306203.spfilter(c,e,tp)
return c:IsRace(RACE_CYBERS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_CYBERSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c62306203.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c62306203.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c62306203.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c62306203.spfilter(chkc,e,tp) end
......
...@@ -12,7 +12,7 @@ function c63528891.initial_effect(c) ...@@ -12,7 +12,7 @@ function c63528891.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c63528891.filter(c) function c63528891.filter(c)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) return c:IsFaceup() and c:IsRace(RACE_CYBERSE)
end end
function c63528891.spcon(e,c) function c63528891.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -56,13 +56,13 @@ function c645087.tkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,13 +56,13 @@ function c645087.tkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c645087.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function c645087.tktg(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
and Duel.IsPlayerCanSpecialSummonMonster(tp,645088,0x51,0x4011,0,0,2,RACE_CYBERS,ATTRIBUTE_LIGHT) end and Duel.IsPlayerCanSpecialSummonMonster(tp,645088,0x51,0x4011,0,0,2,RACE_CYBERSE,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
end end
function c645087.tkop(e,tp,eg,ep,ev,re,r,rp) function c645087.tkop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,645088,0x51,0x4011,0,0,2,RACE_CYBERS,ATTRIBUTE_LIGHT) then return end or not Duel.IsPlayerCanSpecialSummonMonster(tp,645088,0x51,0x4011,0,0,2,RACE_CYBERSE,ATTRIBUTE_LIGHT) then return end
local token=Duel.CreateToken(tp,645088) local token=Duel.CreateToken(tp,645088)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c6622715.initial_effect(c) function c6622715.initial_effect(c)
--link summon --link summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERS),2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERSE),2)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(6622715,0)) e1:SetDescription(aux.Stringid(6622715,0))
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c67231737.initial_effect(c) function c67231737.initial_effect(c)
--link summon --link summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERS),2,2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERSE),2,2)
--extra attack --extra attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(67231737,0)) e1:SetDescription(aux.Stringid(67231737,0))
......
...@@ -25,7 +25,7 @@ function c70238111.initial_effect(c) ...@@ -25,7 +25,7 @@ function c70238111.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c70238111.filter(c,tp) function c70238111.filter(c,tp)
return c:IsRace(RACE_CYBERS) and c:GetLink()==3 and (c:IsFaceup() or not c:IsLocation(LOCATION_MZONE)) return c:IsRace(RACE_CYBERSE) and c:GetLink()==3 and (c:IsFaceup() or not c:IsLocation(LOCATION_MZONE))
and c:IsAbleToRemove() and Duel.GetLocationCountFromEx(tp,tp,c)>0 and c:IsAbleToRemove() and Duel.GetLocationCountFromEx(tp,tp,c)>0
end end
function c70238111.spfilter(c,e,tp) function c70238111.spfilter(c,e,tp)
......
...@@ -24,7 +24,7 @@ function c70950698.initial_effect(c) ...@@ -24,7 +24,7 @@ function c70950698.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c70950698.spcfilter(c,tp) function c70950698.spcfilter(c,tp)
return c:IsControler(tp) and c:IsRace(RACE_CYBERS) return c:IsControler(tp) and c:IsRace(RACE_CYBERSE)
end end
function c70950698.spcon(e,tp,eg,ep,ev,re,r,rp) function c70950698.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c70950698.spcfilter,1,nil,tp) return eg:IsExists(c70950698.spcfilter,1,nil,tp)
...@@ -45,13 +45,13 @@ function c70950698.tkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,13 +45,13 @@ function c70950698.tkcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c70950698.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function c70950698.tktg(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
and Duel.IsPlayerCanSpecialSummonMonster(tp,70950699,0,0x4011,0,0,1,RACE_CYBERS,ATTRIBUTE_EARTH) end and Duel.IsPlayerCanSpecialSummonMonster(tp,70950699,0,0x4011,0,0,1,RACE_CYBERSE,ATTRIBUTE_EARTH) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
function c70950698.tkop(e,tp,eg,ep,ev,re,r,rp) function c70950698.tkop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.IsPlayerCanSpecialSummonMonster(tp,70950699,0,0x4011,0,0,1,RACE_CYBERS,ATTRIBUTE_EARTH) then if Duel.IsPlayerCanSpecialSummonMonster(tp,70950699,0,0x4011,0,0,1,RACE_CYBERSE,ATTRIBUTE_EARTH) then
local token=Duel.CreateToken(tp,70950699) local token=Duel.CreateToken(tp,70950699)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
......
...@@ -24,7 +24,7 @@ function c7445307.initial_effect(c) ...@@ -24,7 +24,7 @@ function c7445307.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c7445307.cfilter(c) function c7445307.cfilter(c)
return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsRace(RACE_CYBERS) and c:IsAbleToRemoveAsCost() return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsRace(RACE_CYBERSE) and c:IsAbleToRemoveAsCost()
end end
function c7445307.mzfilter(c,tp) function c7445307.mzfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5 return c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5
......
...@@ -38,7 +38,7 @@ function c8567955.sumop(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c8567955.sumop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT) e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_CYBERS)) e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_CYBERSE))
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,8567955,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,8567955,RESET_PHASE+PHASE_END,0,1)
......
...@@ -43,7 +43,7 @@ function c89238128.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,7 +43,7 @@ function c89238128.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterEffect(e1) e:GetHandler():RegisterEffect(e1)
end end
function c89238128.atkfilter(c,lg) function c89238128.atkfilter(c,lg)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) and lg and lg:IsContains(c) return c:IsFaceup() and c:IsRace(RACE_CYBERSE) and lg and lg:IsContains(c)
end end
function c89238128.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89238128.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
...@@ -68,7 +68,7 @@ function c89238128.excon(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c89238128.excon(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
end end
function c89238128.exfilter(c,lg) function c89238128.exfilter(c,lg)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) and c:GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 and lg and lg:IsContains(c) return c:IsFaceup() and c:IsRace(RACE_CYBERSE) and c:GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 and lg and lg:IsContains(c)
end end
function c89238128.extg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89238128.extg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
......
...@@ -29,7 +29,7 @@ function c91269402.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c91269402.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,91269402)~=0 return Duel.GetFlagEffect(tp,91269402)~=0
end end
function c91269402.filter(c) function c91269402.filter(c)
return c:IsAbleToHand() and c:IsRace(RACE_CYBERS) and c:IsLevelBelow(4) return c:IsAbleToHand() and c:IsRace(RACE_CYBERSE) and c:IsLevelBelow(4)
end end
function c91269402.target(e,tp,eg,ep,ev,re,r,rp,chk) function c91269402.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c91269402.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c91269402.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -10,7 +10,7 @@ function c91665064.initial_effect(c) ...@@ -10,7 +10,7 @@ function c91665064.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c91665064.filter(c) function c91665064.filter(c)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) return c:IsFaceup() and c:IsRace(RACE_CYBERSE)
end end
function c91665064.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c91665064.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c91665064.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c91665064.filter(chkc) end
......
...@@ -23,7 +23,7 @@ function c9190563.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function c9190563.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c9190563.spfilter(c,e,tp) function c9190563.spfilter(c,e,tp)
return c:IsRace(RACE_CYBERS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_CYBERSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c9190563.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9190563.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c9190563.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c9190563.spfilter(chkc,e,tp) end
......
...@@ -47,7 +47,7 @@ function c92327802.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -47,7 +47,7 @@ function c92327802.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0x43,1,REASON_COST) Duel.RemoveCounter(tp,1,0,0x43,1,REASON_COST)
end end
function c92327802.filter(c) function c92327802.filter(c)
return c:IsFaceup() and c:IsRace(RACE_CYBERS) return c:IsFaceup() and c:IsRace(RACE_CYBERSE)
end end
function c92327802.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c92327802.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c92327802.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c92327802.filter(chkc) end
......
...@@ -12,13 +12,13 @@ function c93104632.initial_effect(c) ...@@ -12,13 +12,13 @@ function c93104632.initial_effect(c)
end end
function c93104632.target(e,tp,eg,ep,ev,re,r,rp,chk) function c93104632.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
and Duel.IsPlayerCanSpecialSummonMonster(tp,93104633,0,0x4011,2000,2000,4,RACE_CYBERS,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE) end and Duel.IsPlayerCanSpecialSummonMonster(tp,93104633,0,0x4011,2000,2000,4,RACE_CYBERSE,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
function c93104632.activate(e,tp,eg,ep,ev,re,r,rp) function c93104632.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,101002161,0,0x4011,2000,2000,4,RACE_CYBERS,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE) then return end or not Duel.IsPlayerCanSpecialSummonMonster(tp,101002161,0,0x4011,2000,2000,4,RACE_CYBERSE,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE) then return end
local token=Duel.CreateToken(tp,93104633) local token=Duel.CreateToken(tp,93104633)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end end
...@@ -17,7 +17,7 @@ function c9523599.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c9523599.spcon(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_LINK return r==REASON_LINK
end end
function c9523599.spfilter(c,e,tp) function c9523599.spfilter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsLevelBelow(4) and c:IsRace(RACE_CYBERS) return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsLevelBelow(4) and c:IsRace(RACE_CYBERSE)
and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c9523599.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9523599.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -88,7 +88,7 @@ RACE_PSYCHO =0x100000 --念动力 ...@@ -88,7 +88,7 @@ RACE_PSYCHO =0x100000 --念动力
RACE_DEVINE =0x200000 --幻神兽 RACE_DEVINE =0x200000 --幻神兽
RACE_CREATORGOD =0x400000 --创造神 RACE_CREATORGOD =0x400000 --创造神
RACE_WYRM =0x800000 --幻龙 RACE_WYRM =0x800000 --幻龙
RACE_CYBERS =0x1000000 --电子界 RACE_CYBERSE =0x1000000 --电子界
--Reason 卡片到当前位置的原因 --Reason 卡片到当前位置的原因
REASON_DESTROY =0x1 --破坏 REASON_DESTROY =0x1 --破坏
REASON_RELEASE =0x2 --解放 REASON_RELEASE =0x2 --解放
......
...@@ -2,6 +2,7 @@ Auxiliary={} ...@@ -2,6 +2,7 @@ Auxiliary={}
aux=Auxiliary aux=Auxiliary
POS_FACEUP_DEFENCE=POS_FACEUP_DEFENSE POS_FACEUP_DEFENCE=POS_FACEUP_DEFENSE
POS_FACEDOWN_DEFENCE=POS_FACEDOWN_DEFENSE POS_FACEDOWN_DEFENCE=POS_FACEDOWN_DEFENSE
RACE_CYBERS=RACE_CYBERSE
function Auxiliary.Stringid(code,id) function Auxiliary.Stringid(code,id)
return code*16+id return code*16+id
......
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