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)
end
end
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
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
......
......@@ -13,7 +13,7 @@ function c45666710.initial_effect(c)
c:RegisterEffect(e1)
end
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
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
......
......@@ -44,7 +44,7 @@ function c46606977.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
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
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
......
......@@ -26,13 +26,13 @@ function c48736598.initial_effect(c)
c:RegisterEffect(e2)
end
function c48736598.lcheck(g,lc)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x23c)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x13c)
end
function c48736598.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetMutualLinkedGroupCount()>0
end
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
for p=0,1 do
local zone=Duel.GetLinkedZone(p)&0xff
......@@ -86,7 +86,7 @@ function c48736598.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
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
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)
......
......@@ -58,7 +58,7 @@ function c63972571.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
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()
end
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)
end
end
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
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
......
......@@ -35,11 +35,11 @@ end
function c8662794.atktg(e,c)
local lg1=c: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))
end
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)
end
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