Commit c3a1ed31 authored by wind2009's avatar wind2009 Committed by GitHub

Update setcode (#2636)

parent eda2b40e
...@@ -38,7 +38,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -38,7 +38,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function s.dcfilter(c) function s.dcfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) return c:IsFaceupEx() and c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -33,7 +33,7 @@ function s.initial_effect(c) ...@@ -33,7 +33,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.spfilter(c) function s.spfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(id) return c:IsFaceup() and c:IsSetCard(0x103d) and not c:IsCode(id)
end end
function s.spcon(e,c) function s.spcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -44,7 +44,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x1ba) and c:IsAbleToHand() return c:IsSetCard(0x203d) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
...@@ -59,7 +59,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.effcon(e,tp,eg,ep,ev,re,r,rp) function s.effcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_SYNCHRO)~=0 and e:GetHandler():GetReasonCard():IsSetCard(0x3d) return bit.band(r,REASON_SYNCHRO)~=0 and e:GetHandler():GetReasonCard():IsSetCard(0x103d)
end end
function s.effop(e,tp,eg,ep,ev,re,r,rp) function s.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
function s.filter(c,e,tp,mg) function s.filter(c,e,tp,mg)
if c:GetLevel()<4 then return false end if c:GetLevel()<4 then return false end
local ct=math.floor(c:GetLevel()/4) local ct=math.floor(c:GetLevel()/4)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x1bd) and c:CheckFusionMaterial() return c:IsType(TYPE_FUSION) and c:IsSetCard(0x1bc) and c:CheckFusionMaterial()
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
and mg:CheckSubGroup(s.gcheck,ct,ct,tp,c) and mg:CheckSubGroup(s.gcheck,ct,ct,tp,c)
end end
...@@ -70,7 +70,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsSetCard(0x1bd) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1bc) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end
......
...@@ -44,7 +44,7 @@ function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end if chk==0 then return not e:GetHandler():IsPublic() end
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -24,13 +24,13 @@ function s.initial_effect(c) ...@@ -24,13 +24,13 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsAttackBelow(2000) and c:IsSetCard(0x3d) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttackBelow(2000) and c:IsSetCard(0x103d) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.posfilter(c) function s.posfilter(c)
return c:IsFaceup() and c:IsAttackBelow(2000) and c:IsCanTurnSet() return c:IsFaceup() and c:IsAttackBelow(2000) and c:IsCanTurnSet()
end end
function s.bfilter(c) function s.bfilter(c)
return c:IsSetCard(0x3d) and c:IsFaceup() return c:IsSetCard(0x103d) and c:IsFaceup()
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.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
...@@ -90,7 +90,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +90,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x3d) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x103d) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end
......
...@@ -36,7 +36,7 @@ function s.initial_effect(c) ...@@ -36,7 +36,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),aux.NonTuner(Card.IsSetCard,0x3d),1) aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR),aux.NonTuner(Card.IsSetCard,0x103d),1)
c:EnableReviveLimit() c:EnableReviveLimit()
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -43,7 +43,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function s.thfilter(c) function s.thfilter(c)
return (c:IsSetCard(0x3d) or c:IsSetCard(0x20) and c:IsType(TYPE_EFFECT)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return (c:IsSetCard(0x103d) or c:IsSetCard(0x20) and c:IsType(TYPE_EFFECT)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......
...@@ -29,7 +29,7 @@ s.fusion_effect=true ...@@ -29,7 +29,7 @@ s.fusion_effect=true
function s.filter(c,e,tp,mg) function s.filter(c,e,tp,mg)
if c:GetLevel()<4 then return false end if c:GetLevel()<4 then return false end
local ct=math.floor(c:GetLevel()/4) local ct=math.floor(c:GetLevel()/4)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x1bd) and c:CheckFusionMaterial() return c:IsType(TYPE_FUSION) and c:IsSetCard(0x1bc) and c:CheckFusionMaterial()
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
and mg:CheckSubGroup(s.gcheck,ct,ct,tp,c) and mg:CheckSubGroup(s.gcheck,ct,ct,tp,c)
end end
......
...@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.descon(e,tp,eg,ep,ev,re,r,rp) function s.descon(e,tp,eg,ep,ev,re,r,rp)
return not re:GetHandler():IsCode(id) and re:GetHandler():IsSetCard(0x1bd,0x19e) return not re:GetHandler():IsCode(id) and re:GetHandler():IsSetCard(0x1bc,0x19e)
and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -43,7 +43,7 @@ function s.mfilter(c) ...@@ -43,7 +43,7 @@ function s.mfilter(c)
return c:IsFusionAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER) return c:IsFusionAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_SPELLCASTER)
end end
function s.damtg(e,c) function s.damtg(e,c)
return c:IsSetCard(0x1bd) and not c:IsCode(id) return c:IsSetCard(0x1bc) and not c:IsCode(id)
end end
function s.discon(e,tp,eg,ep,ev,re,r,rp) function s.discon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.IsChainDisablable(ev) return ep~=tp and Duel.IsChainDisablable(ev)
......
...@@ -58,7 +58,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -60,7 +60,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,7 +60,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x1bd) and c:IsAbleToHand() return c:IsSetCard(0x1bc) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -81,7 +81,7 @@ function s.lpcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +81,7 @@ function s.lpcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter2,1,nil,1-tp) return eg:IsExists(s.cfilter2,1,nil,1-tp)
end end
function s.lptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.lptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.AND(Card.IsSetCard,Card.IsFaceup),tp,LOCATION_MZONE,0,1,nil,0x1bd) end if chk==0 then return Duel.IsExistingMatchingCard(aux.AND(Card.IsSetCard,Card.IsFaceup),tp,LOCATION_MZONE,0,1,nil,0x1bc) end
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1500) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1500)
end end
function s.lpop(e,tp,eg,ep,ev,re,r,rp) function s.lpop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -46,7 +46,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function s.costfilter(c) function s.costfilter(c)
return c:IsSetCard(0x3d) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x103d) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100) e:SetLabel(100)
...@@ -82,7 +82,7 @@ function s.adcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,7 +82,7 @@ function s.adcon(e,tp,eg,ep,ev,re,r,rp)
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x103d) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.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
......
...@@ -48,7 +48,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x1bd,0x19e) and c:IsAbleToHand() return c:IsSetCard(0x1bc,0x19e) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -63,7 +63,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.atkfilter(c) function s.atkfilter(c)
return c:IsSetCard(0x1bd) and c:IsType(TYPE_MONSTER) and c:IsFaceup() return c:IsSetCard(0x1bc) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
end end
function s.val(e,c) function s.val(e,c)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
......
...@@ -48,7 +48,7 @@ function s.ccon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function s.ccon2(e,tp,eg,ep,ev,re,r,rp)
and eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_DECK) and eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_DECK)
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsSetCard(0x1be) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x1bd) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function s.cop(e,tp,eg,ep,ev,re,r,rp) function s.cop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -33,7 +33,7 @@ function s.initial_effect(c) ...@@ -33,7 +33,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.spfilter(c) function s.spfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(id) return c:IsFaceup() and c:IsSetCard(0x103d) and not c:IsCode(id)
end end
function s.spcon(e,c) function s.spcon(e,c)
if c==nil then return true end if c==nil then return true end
...@@ -44,7 +44,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x3d) and bit.band(c:GetType(),TYPE_SPELL+TYPE_QUICKPLAY)==TYPE_SPELL+TYPE_QUICKPLAY and c:IsAbleToHand() return c:IsSetCard(0x103d) and bit.band(c:GetType(),TYPE_SPELL+TYPE_QUICKPLAY)==TYPE_SPELL+TYPE_QUICKPLAY and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -59,7 +59,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.effcon(e,tp,eg,ep,ev,re,r,rp) function s.effcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_SYNCHRO)~=0 and e:GetHandler():GetReasonCard():IsSetCard(0x3d) return bit.band(r,REASON_SYNCHRO)~=0 and e:GetHandler():GetReasonCard():IsSetCard(0x103d)
end end
function s.effop(e,tp,eg,ep,ev,re,r,rp) function s.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -44,7 +44,7 @@ function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end if chk==0 then return not e:GetHandler():IsPublic() end
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP) and c:IsSSetable()
end end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -56,7 +56,7 @@ function s.aclimit(e,re,tp) ...@@ -56,7 +56,7 @@ function s.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_HAND and re:IsActiveType(TYPE_MONSTER) return re:GetActivateLocation()==LOCATION_HAND and re:IsActiveType(TYPE_MONSTER)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x1bc) and c:IsAbleToHand() return c:IsSetCard(0x1bb) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -26,7 +26,7 @@ function s.initial_effect(c) ...@@ -26,7 +26,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.filter(c) function s.filter(c)
return (c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) or aux.IsCodeListed(c,89812483) and c:IsType(TYPE_MONSTER)) and c:IsAbleToHand() return (c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP) or aux.IsCodeListed(c,89812483) and c:IsType(TYPE_MONSTER)) and c:IsAbleToHand()
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
...@@ -41,7 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.cfilter(c) function s.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x1bb) and c:IsType(TYPE_TRAP) return c:IsFaceup() and c:IsSetCard(0x1ba) and c:IsType(TYPE_TRAP)
end end
function s.poscon(e,tp,eg,ep,ev,re,r,rp) function s.poscon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
...@@ -26,7 +26,7 @@ s.fusion_effect=true ...@@ -26,7 +26,7 @@ s.fusion_effect=true
function s.filter(c,e,tp,mg) function s.filter(c,e,tp,mg)
if c:GetLevel()<4 then return false end if c:GetLevel()<4 then return false end
local ct=math.floor(c:GetLevel()/4) local ct=math.floor(c:GetLevel()/4)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x1bd) and c:CheckFusionMaterial() return c:IsType(TYPE_FUSION) and c:IsSetCard(0x1bc) and c:CheckFusionMaterial()
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
and mg:CheckSubGroup(s.gcheck,ct,ct,tp,c) and mg:CheckSubGroup(s.gcheck,ct,ct,tp,c)
end end
...@@ -64,7 +64,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function s.tdfilter(c) function s.tdfilter(c)
return c:IsFaceupEx() and c:IsType(TYPE_MONSTER) return c:IsFaceupEx() and c:IsType(TYPE_MONSTER)
and c:IsAbleToDeck() and c:IsSetCard(0x1bd) and c:IsAbleToDeck() and c:IsSetCard(0x1bc)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -46,7 +46,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsSetCard(0x1bd,0x19e) and c:IsAbleToHand() return c:IsSetCard(0x1bc,0x19e) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end
......
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