Commit e481b3e1 authored by mercury233's avatar mercury233

fix setcodes

I'm very sorry for any inconvenience
parent bd0db698
...@@ -43,7 +43,7 @@ function c19211362.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c19211362.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c19211362.srfilter(c) function c19211362.srfilter(c)
return c:IsSetCard(0x23e) and c:IsType(TYPE_MONSTER) and not c:IsCode(19211362) and c:IsAbleToHand() return c:IsSetCard(0x13d) and c:IsType(TYPE_MONSTER) and not c:IsCode(19211362) and c:IsAbleToHand()
end end
function c19211362.srtg(e,tp,eg,ep,ev,re,r,rp,chk) function c19211362.srtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19211362.srfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c19211362.srfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -13,7 +13,7 @@ function c45666710.initial_effect(c) ...@@ -13,7 +13,7 @@ function c45666710.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c45666710.filter(c,e,tp) function c45666710.filter(c,e,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsSetCard(0x23e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsSetCard(0x13d) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c45666710.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45666710.target(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 c45666710.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c45666710.filter(chkc,e,tp) end
......
...@@ -44,7 +44,7 @@ function c46606977.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c46606977.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c46606977.thfilter(c) function c46606977.thfilter(c)
return c:IsSetCard(0x23e) and c:IsType(TYPE_MONSTER) and not c:IsCode(46606977) and c:IsAbleToHand() return c:IsSetCard(0x13d) and c:IsType(TYPE_MONSTER) and not c:IsCode(46606977) and c:IsAbleToHand()
end end
function c46606977.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c46606977.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c46606977.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c46606977.thfilter(chkc) end
......
...@@ -26,13 +26,13 @@ function c48736598.initial_effect(c) ...@@ -26,13 +26,13 @@ function c48736598.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c48736598.lcheck(g,lc) function c48736598.lcheck(g,lc)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x23c) return g:IsExists(Card.IsLinkSetCard,1,nil,0x13c)
end end
function c48736598.spcon(e,tp,eg,ep,ev,re,r,rp) function c48736598.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetMutualLinkedGroupCount()>0 return e:GetHandler():GetMutualLinkedGroupCount()>0
end end
function c48736598.spfilter(c,e,tp) function c48736598.spfilter(c,e,tp)
if not c:IsSetCard(0x23c) then return false end if not c:IsSetCard(0x13c) then return false end
local ok=false local ok=false
for p=0,1 do for p=0,1 do
local zone=Duel.GetLinkedZone(p)&0xff local zone=Duel.GetLinkedZone(p)&0xff
...@@ -86,7 +86,7 @@ function c48736598.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,7 +86,7 @@ function c48736598.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c48736598.desfilter(c) function c48736598.desfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23c) and c:IsLinkState() return c:IsFaceup() and c:IsSetCard(0x13c) and c:IsLinkState()
end end
function c48736598.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c48736598.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c48736598.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(c48736598.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
......
...@@ -58,7 +58,7 @@ function c63972571.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c63972571.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c63972571.cfilter(c) function c63972571.cfilter(c)
return c:IsSetCard(0x23d) and c:IsType(TYPE_MONSTER) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) return c:IsSetCard(0x13e) and c:IsType(TYPE_MONSTER) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
and c:IsAbleToRemoveAsCost() and c:IsAbleToRemoveAsCost()
end end
function c63972571.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c63972571.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -44,7 +44,7 @@ function c72090076.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c72090076.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c72090076.thfilter(c) function c72090076.thfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23e) and c:IsType(TYPE_MONSTER) and not c:IsCode(72090076) and c:IsAbleToHand() return c:IsFaceup() and c:IsSetCard(0x13d) and c:IsType(TYPE_MONSTER) and not c:IsCode(72090076) and c:IsAbleToHand()
end end
function c72090076.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c72090076.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c72090076.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c72090076.thfilter(chkc) end
......
...@@ -35,11 +35,11 @@ end ...@@ -35,11 +35,11 @@ end
function c8662794.atktg(e,c) function c8662794.atktg(e,c)
local lg1=c:GetLinkedGroup() local lg1=c:GetLinkedGroup()
local lg2=e:GetHandler():GetLinkedGroup() local lg2=e:GetHandler():GetLinkedGroup()
return c:IsFaceup() and c:IsType(TYPE_LINK) and not c:IsSetCard(0x23c) return c:IsFaceup() and c:IsType(TYPE_LINK) and not c:IsSetCard(0x13c)
and (lg1 and lg1:IsContains(e:GetHandler()) or lg2 and lg2:IsContains(c)) and (lg1 and lg1:IsContains(e:GetHandler()) or lg2 and lg2:IsContains(c))
end end
function c8662794.desfilter(c) function c8662794.desfilter(c)
return c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousTypeOnField()&TYPE_LINK~=0 and c:IsPreviousSetCard(0x23c) return c:IsPreviousPosition(POS_FACEUP) and c:GetPreviousTypeOnField()&TYPE_LINK~=0 and c:IsPreviousSetCard(0x13c)
and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE)
end end
function c8662794.descon(e,tp,eg,ep,ev,re,r,rp) function c8662794.descon(e,tp,eg,ep,ev,re,r,rp)
......
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