Commit a6c8ab7c authored by mercury233's avatar mercury233

update setcode

parent 70151c12
...@@ -45,7 +45,7 @@ function c14386013.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c14386013.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c14386013.drfilter(c) function c14386013.drfilter(c)
return (c:IsCode(94212438) or c:IsCode(31893528,67287533,94772232,30170981)) and c:IsAbleToDeck() return (c:IsCode(94212438) or c:IsSetCode(0x1c)) and c:IsAbleToDeck()
end end
function c14386013.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c14386013.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp) if chk==0 then return Duel.IsPlayerCanDraw(tp)
......
...@@ -26,7 +26,7 @@ function c15173384.initial_effect(c) ...@@ -26,7 +26,7 @@ function c15173384.initial_effect(c)
end end
function c15173384.cfilter(c,tp) function c15173384.cfilter(c,tp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_BATTLE+REASON_EFFECT)
and ((c:IsPreviousSetCard(0x110) and bit.band(c:GetPreviousTypeOnField(),TYPE_FUSION)~=0) or c:GetPreviousCodeOnField()==64631466) and ((c:IsPreviousSetCard(0x1110) and bit.band(c:GetPreviousTypeOnField(),TYPE_FUSION)~=0) or c:GetPreviousCodeOnField()==64631466)
and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
end end
function c15173384.spcon1(e,tp,eg,ep,ev,re,r,rp) function c15173384.spcon1(e,tp,eg,ep,ev,re,r,rp)
...@@ -47,7 +47,7 @@ function c15173384.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c15173384.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c15173384.filter(c,e,tp) function c15173384.filter(c,e,tp)
return ((c:IsSetCard(0x110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466)) return ((c:IsSetCard(0x1110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c15173384.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c15173384.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -35,7 +35,7 @@ function c40771118.thfilter(c) ...@@ -35,7 +35,7 @@ function c40771118.thfilter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsRace(RACE_FIEND) and c:IsAbleToHand() return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsRace(RACE_FIEND) and c:IsAbleToHand()
end end
function c40771118.cfilter(c) function c40771118.cfilter(c)
return c:IsFaceup() and (c:IsCode(94212438) or c:IsCode(31893528,67287533,94772232,30170981)) return c:IsFaceup() and (c:IsCode(94212438) or c:IsSetCode(0x1c))
end end
function c40771118.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c40771118.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c40771118.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c40771118.thfilter(chkc) end
...@@ -59,7 +59,7 @@ function c40771118.plcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,7 +59,7 @@ function c40771118.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c40771118.plfilter(c,tp,mc) function c40771118.plfilter(c,tp,mc)
if not c:IsCode(31893528,67287533,94772232,30170981) then return false end if not c:IsSetCode(0x1c) then return false end
if Duel.IsPlayerAffectedByEffect(tp,16625614) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if Duel.IsPlayerAffectedByEffect(tp,16625614) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0,0x11,0,0,1,RACE_FIEND,ATTRIBUTE_DARK,POS_FACEUP,tp,SUMMON_VALUE_DARK_SANCTUARY) then return true end and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),0,0x11,0,0,1,RACE_FIEND,ATTRIBUTE_DARK,POS_FACEUP,tp,SUMMON_VALUE_DARK_SANCTUARY) then return true end
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE) local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
......
...@@ -29,7 +29,7 @@ function c78063197.filter1(c,e) ...@@ -29,7 +29,7 @@ function c78063197.filter1(c,e)
return c:IsAbleToRemove() and not c:IsImmuneToEffect(e) return c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
end end
function c78063197.filter2(c,e,tp,m,f,chkf) function c78063197.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and (not f or f(c)) and c:IsSetCard(0x110) return c:IsType(TYPE_FUSION) and (not f or f(c)) and c:IsSetCard(0x1110)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
end end
function c78063197.filter3(c) function c78063197.filter3(c)
...@@ -95,7 +95,7 @@ function c78063197.filter(c) ...@@ -95,7 +95,7 @@ function c78063197.filter(c)
end end
function c78063197.eqfilter(c) function c78063197.eqfilter(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return c:IsFaceup() and ((c:IsSetCard(0x110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466)) and m.can_equip_monster(c) return c:IsFaceup() and ((c:IsSetCard(0x1110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466)) and m.can_equip_monster(c)
end end
function c78063197.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78063197.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c78063197.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c78063197.filter(chkc) end
......
...@@ -35,7 +35,7 @@ function c89785779.filter(c) ...@@ -35,7 +35,7 @@ function c89785779.filter(c)
end end
function c89785779.eqfilter(c) function c89785779.eqfilter(c)
local m=_G["c"..c:GetCode()] local m=_G["c"..c:GetCode()]
return c:IsFaceup() and ((c:IsSetCard(0x110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466)) and m.can_equip_monster(c) return c:IsFaceup() and ((c:IsSetCard(0x1110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466)) and m.can_equip_monster(c)
end end
function c89785779.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89785779.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c89785779.filter(chkc) and chkc~=e:GetHandler() end if chkc then return chkc:IsOnField() and c89785779.filter(chkc) and chkc~=e:GetHandler() end
...@@ -59,7 +59,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c89785779.thfilter(c) function c89785779.thfilter(c)
return c:IsFaceup() and ((c:IsSetCard(0x110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466)) return c:IsFaceup() and ((c:IsSetCard(0x1110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466))
end end
function c89785779.thcon(e,tp,eg,ep,ev,re,r,rp) function c89785779.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c89785779.thfilter,1,nil) return eg:IsExists(c89785779.thfilter,1,nil)
......
...@@ -83,10 +83,10 @@ function c94212438.plop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,10 +83,10 @@ function c94212438.plop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c94212438.cfilter1(c,tp) function c94212438.cfilter1(c,tp)
return c:IsControler(tp) and c:IsCode(94212438,31893528,67287533,94772232,30170981) return c:IsControler(tp) and (c:IsCode(94212438) or c:IsSetCode(0x1c))
end end
function c94212438.cfilter2(c) function c94212438.cfilter2(c)
return c:IsFaceup() and c:IsCode(94212438,31893528,67287533,94772232,30170981) return c:IsFaceup() and (c:IsCode(94212438) or c:IsSetCode(0x1c))
end end
function c94212438.tgcon(e,tp,eg,ep,ev,re,r,rp) function c94212438.tgcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c94212438.cfilter1,1,nil,tp) return eg:IsExists(c94212438.cfilter1,1,nil,tp)
...@@ -96,7 +96,7 @@ function c94212438.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,7 +96,7 @@ function c94212438.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
function c94212438.cfilter3(c) function c94212438.cfilter3(c)
return c:IsFaceup() and c:IsCode(31893528,67287533,94772232,30170981) return c:IsFaceup() and c:IsSetCode(0x1c)
end end
function c94212438.winop(e,tp,eg,ep,ev,re,r,rp) function c94212438.winop(e,tp,eg,ep,ev,re,r,rp)
local WIN_REASON_DESTINY_BOARD=0x15 local WIN_REASON_DESTINY_BOARD=0x15
......
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