Commit f1b511ed authored by nekrozar's avatar nekrozar

setcode

Hope(Utopi) setcode: 0x7f
Utopia setcode: 0x107f
parent eeefb35c
......@@ -21,7 +21,7 @@ function c11705261.initial_effect(c)
c:RegisterEffect(e2)
end
function c11705261.filter(c,tp)
return c:IsSetCard(0x7f) and c:IsControler(tp) and c:GetSummonType()==SUMMON_TYPE_XYZ
return c:IsSetCard(0x107f) and c:IsControler(tp) and c:GetSummonType()==SUMMON_TYPE_XYZ
end
function c11705261.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c11705261.filter,1,nil,tp)
......
......@@ -51,7 +51,7 @@ function c12927849.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c12927849.eqfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c12927849.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c12927849.eqfilter(chkc) end
......
......@@ -30,7 +30,7 @@ function c18865703.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CheckUniqueOnField(tp)
end
function c18865703.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c18865703.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c18865703.filter(chkc) end
......
......@@ -30,7 +30,7 @@ function c21521304.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_ADD_SETCODE)
e3:SetValue(0x7f)
e3:SetValue(0x107f)
c:RegisterEffect(e3)
end
c21521304.xyz_number=39
......@@ -58,7 +58,7 @@ function c21521304.rmfilter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsAbleToRemove()
end
function c21521304.spfilter(c,e,tp)
return c:IsSetCard(0x7f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x107f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c21521304.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......
......@@ -28,7 +28,7 @@ function c2648201.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CheckUniqueOnField(tp)
end
function c2648201.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c2648201.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c2648201.filter(chkc) end
......@@ -71,7 +71,7 @@ function c2648201.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_LOST_TARGET) and c:GetPreviousControler()==tp and ec:IsReason(REASON_DESTROY) and ec:GetReasonPlayer()~=tp
end
function c2648201.spfilter(c,e,tp)
return c:IsSetCard(0x7f) and c:IsCanBeSpecialSummoned(e,0,tp,tp,false,false)
return c:IsSetCard(0x107f) and c:IsCanBeSpecialSummoned(e,0,tp,tp,false,false)
end
function c2648201.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c2648201.spfilter(chkc,e,tp) end
......
......@@ -38,7 +38,7 @@ function c26493435.initial_effect(c)
c:RegisterEffect(e5)
end
function c26493435.ctfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x7f) and c:IsControler(tp)
return c:IsFaceup() and c:IsSetCard(0x107f) and c:IsControler(tp)
end
function c26493435.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c26493435.ctfilter,1,nil,tp)
......
......@@ -46,7 +46,7 @@ function c27062594.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c27062594.cfilter(c)
return c:IsSetCard(0x7f) and c:IsAbleToRemoveAsCost()
return c:IsSetCard(0x107f) and c:IsAbleToRemoveAsCost()
end
function c27062594.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c27062594.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -40,7 +40,7 @@ function c29353756.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CheckUniqueOnField(tp)
end
function c29353756.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c29353756.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c29353756.filter(chkc) end
......
......@@ -11,7 +11,7 @@ function c30341772.initial_effect(c)
c:RegisterEffect(e1)
end
function c30341772.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c30341772.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c30341772.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
......@@ -33,7 +33,7 @@ function c33725002.initial_effect(c)
c:RegisterEffect(e3)
end
function c33725002.spfilter(c,e,tp)
return c:IsSetCard(0x7f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x107f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c33725002.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c33725002.spfilter(chkc,e,tp) end
......@@ -73,10 +73,11 @@ function c33725002.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(c33725002.eqlimit)
e1:SetLabelObject(tc)
c:RegisterEffect(e1)
end
function c33725002.eqlimit(e,c)
return c:IsSetCard(0x7f)
return c==e:GetLabelObject()
end
function c33725002.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipTarget():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
......@@ -12,8 +12,8 @@ function c38777931.initial_effect(c)
c:RegisterEffect(e1)
end
function c38777931.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x7f) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x7f)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x107f) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x107f)
Duel.Release(g,REASON_COST)
end
function c38777931.filter(c)
......
......@@ -23,7 +23,7 @@ function c40941889.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CheckUniqueOnField(tp)
end
function c40941889.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c40941889.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c40941889.filter(chkc) end
......
......@@ -33,7 +33,7 @@ function c45082499.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CheckUniqueOnField(tp)
end
function c45082499.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c45082499.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c45082499.filter(chkc) end
......
......@@ -33,7 +33,7 @@ function c51543904.cfilter(c)
return c:IsSetCard(0x95) and c:IsType(TYPE_SPELL) and c:IsDiscardable()
end
function c51543904.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c51543904.xyzop(e,tp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c51543904.cfilter,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -27,7 +27,7 @@ function c51865604.initial_effect(c)
c:RegisterEffect(e2)
end
function c51865604.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c51865604.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c51865604.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
......@@ -54,7 +54,7 @@ function c52653092.cfilter(c)
return c:IsSetCard(0x95) and c:GetType()==TYPE_SPELL and c:IsDiscardable()
end
function c52653092.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c52653092.mfilter(c,xyzc)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x48) and c:IsCanBeXyzMaterial(xyzc)
......
......@@ -34,7 +34,7 @@ function c56832966.initial_effect(c)
end
c56832966.xyz_number=39
function c56832966.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x7f) and c:IsType(TYPE_XYZ) and c:GetRank()==4
return c:IsFaceup() and c:IsSetCard(0x107f) and c:IsType(TYPE_XYZ) and c:GetRank()==4
end
function c56832966.aclimit(e,re,tp)
return not re:GetHandler():IsImmuneToEffect(e)
......@@ -43,7 +43,7 @@ function c56832966.actcon(e)
return Duel.GetAttacker()==e:GetHandler() or Duel.GetAttackTarget()==e:GetHandler()
end
function c56832966.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetBattleTarget()~=nil and e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x7f)
return e:GetHandler():GetBattleTarget()~=nil and e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x107f)
end
function c56832966.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -61,7 +61,7 @@ function c60992364.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c60992364.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c60992364.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c60992364.filter(chkc) end
......
......@@ -28,7 +28,7 @@ function c6330307.initial_effect(c)
c:RegisterEffect(e3)
end
function c6330307.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f) and c:IsSetCard(0x1048)
return c:IsFaceup() and c:IsSetCard(0x107f) and c:IsSetCard(0x1048)
end
function c6330307.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c6330307.filter(chkc) end
......
......@@ -49,7 +49,7 @@ function c66970002.tdop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c66970002.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x7f)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x107f)
end
function c66970002.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
......@@ -12,11 +12,11 @@ function c71345905.initial_effect(c)
end
function c71345905.filter1(c,e,tp)
local rk=c:GetRank()
return rk>1 and c:IsFaceup() and c:IsSetCard(0x7f)
return rk>1 and c:IsFaceup() and c:IsSetCard(0x107f)
and Duel.IsExistingMatchingCard(c71345905.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,rk)
end
function c71345905.filter2(c,e,tp,mc,rk)
return c:IsRankBelow(rk-1) and c:IsSetCard(0x7f) and mc:IsCanBeXyzMaterial(c)
return c:IsRankBelow(rk-1) and c:IsSetCard(0x107f) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
end
function c71345905.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -13,7 +13,7 @@ function c72502414.initial_effect(c)
c:RegisterEffect(e1)
end
function c72502414.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f) and c:IsType(TYPE_XYZ)
return c:IsFaceup() and c:IsSetCard(0x107f) and c:IsType(TYPE_XYZ)
end
function c72502414.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c72502414.filter(chkc) end
......
......@@ -34,7 +34,7 @@ function c81471108.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():CheckUniqueOnField(tp)
end
function c81471108.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c81471108.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c81471108.filter(chkc) end
......
......@@ -36,7 +36,7 @@ function c87911394.aclimit(e,re,tp)
end
function c87911394.atkcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttackTarget()
return at and at:IsFaceup() and e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x7f)
return at and at:IsFaceup() and e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0x107f)
end
function c87911394.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
......@@ -48,10 +48,10 @@ function c94807487.initial_effect(c)
c:RegisterEffect(e6)
end
function c94807487.eqlimit(e,c)
return c:IsSetCard(0x7f)
return c:IsSetCard(0x107f)
end
function c94807487.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c94807487.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c94807487.filter(chkc) end
......
......@@ -30,10 +30,10 @@ function c94950218.initial_effect(c)
c:RegisterEffect(e3)
end
function c94950218.eqlimit(e,c)
return c:IsSetCard(0x7f)
return c:IsSetCard(0x107f)
end
function c94950218.filter(c)
return c:IsFaceup() and c:IsSetCard(0x7f)
return c:IsFaceup() and c:IsSetCard(0x107f)
end
function c94950218.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c94950218.filter(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