Commit 1f073bd9 authored by VanillaSalt's avatar VanillaSalt

fix

parent 1cb74447
......@@ -34,10 +34,10 @@ function c10004783.initial_effect(c)
c:RegisterEffect(e4)
end
function c10004783.eqlimit(e,c)
return c:IsSetCard(0x34)
return c:IsSetCard(0x1034)
end
function c10004783.filter(c)
return c:IsFaceup() and c:IsSetCard(0x34)
return c:IsFaceup() and c:IsSetCard(0x1034)
end
function c10004783.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_MZONE and c10004783.filter(chkc) end
......@@ -57,12 +57,12 @@ function c10004783.tfcon(e,tp,eg,ep,ev,re,r,rp)
end
function c10004783.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x34) end
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x1034) end
end
function c10004783.tfop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,1,1,nil,0x34)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,1,1,nil,0x1034)
if g:GetCount()>0 then
local tc=g:GetFirst()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
......
......@@ -18,14 +18,14 @@ function c11136371.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function c11136371.pltg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x34) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x1034) end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,LOCATION_GRAVE)
end
function c11136371.plop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
if ft<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_GRAVE,0,ft,ft,nil,0x34)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_GRAVE,0,ft,ft,nil,0x1034)
if g:GetCount()>0 then
local tc=g:GetFirst()
while tc do
......@@ -51,7 +51,7 @@ function c11136371.plop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c11136371.desfilter(c)
return c:IsFaceup() and c:IsSetCard(0x34)
return c:IsFaceup() and c:IsSetCard(0x1034)
end
function c11136371.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c11136371.desfilter,tp,LOCATION_ONFIELD,0,1,nil)
......
......@@ -11,7 +11,7 @@ function c12644061.initial_effect(c)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE)
e2:SetCode(EFFECT_CHANGE_ATTRIBUTE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x34))
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x1034))
e2:SetValue(ATTRIBUTE_DARK)
c:RegisterEffect(e2)
--negate
......@@ -55,10 +55,10 @@ end
function c12644061.damcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local at=Duel.GetAttackTarget()
return ep==tp and ((a:IsControler(tp) and a:IsSetCard(0x34)) or (at and at:IsControler(tp) and at:IsSetCard(0x34)))
return ep==tp and ((a:IsControler(tp) and a:IsSetCard(0x1034)) or (at and at:IsControler(tp) and at:IsSetCard(0x1034)))
end
function c12644061.dfilter(c)
return c:IsSetCard(0x34) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
end
function c12644061.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12644061.dfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -6,30 +6,18 @@ function c1516510.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_FUSION_MATERIAL)
e1:SetCondition(c1516510.fscon)
e1:SetOperation(c1516510.fsop)
e1:SetCondition(aux.FConditionCodeFun(16178681,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),1,true,false))
e1:SetOperation(c1516510.fsop2)
c:RegisterEffect(e1)
end
c1516510.material_count=1
c1516510.material={16178681}
function c1516510.mfilter(c,mg)
return (c:IsCode(16178681) or c:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)) and mg:IsExists(Card.IsRace,1,c,RACE_SPELLCASTER)
end
function c1516510.fscon(e,mg,gc)
if mg==nil then return false end
if gc then return false end
return mg:IsExists(c1516510.mfilter,1,nil,mg)
end
c1516510.fsop1=aux.FOperationCodeFun(16178681,aux.FilterBoolFunction(Card.IsRace,RACE_SPELLCASTER),1,true,false)
function c1516510.imfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_PENDULUM
end
function c1516510.fsop(e,tp,eg,ep,ev,re,r,rp,gc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local g1=eg:FilterSelect(tp,c1516510.mfilter,1,1,nil,eg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local g2=eg:FilterSelect(tp,Card.IsRace,1,1,g1:GetFirst(),RACE_SPELLCASTER)
g1:Merge(g2)
Duel.SetFusionMaterial(g1)
function c1516510.fsop2(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
c1516510.fsop1(e,tp,eg,ep,ev,re,r,rp,gc,chkf)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -39,7 +39,7 @@ function c21698716.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0)
end
function c21698716.filter(c)
return c:IsSetCard(0x34) and c:IsAbleToDeck() and c:IsFaceup()
return c:IsSetCard(0x1034) and c:IsAbleToDeck() and c:IsFaceup()
end
function c21698716.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c21698716.filter(chkc) end
......
......@@ -38,7 +38,7 @@ function c32710364.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0)
end
function c32710364.filter(c,e,sp)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsCanBeSpecialSummoned(e,0,sp,true,false)
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,sp,true,false)
end
function c32710364.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c32710364.filter,tp,LOCATION_SZONE,0,1,nil,e,tp)
......
......@@ -60,17 +60,17 @@ function c34487429.initial_effect(c)
c:RegisterEffect(e6)
end
function c34487429.filter1(c)
return c:IsFaceup() and c:IsSetCard(0x34)
return c:IsFaceup() and c:IsSetCard(0x1034)
end
function c34487429.desrepcon(e)
return Duel.IsExistingMatchingCard(c34487429.filter1,e:GetHandler():GetControler(),LOCATION_SZONE,0,1,nil)
end
function c34487429.discon(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_SZONE,0,3,nil,0x34)
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_SZONE,0,3,nil,0x1034)
end
function c34487429.filter2(c)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsAbleToGraveAsCost()
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
end
function c34487429.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c34487429.filter2,tp,LOCATION_MZONE,0,1,nil) end
......@@ -110,7 +110,7 @@ function c34487429.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c34487429.filter1,tp,LOCATION_SZONE,0,5,nil)
end
function c34487429.filter3(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c34487429.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_SZONE and chkc:GetControler()==tp and c34487429.filter3(chkc,e,tp) end
......
......@@ -11,9 +11,9 @@ function c35486099.initial_effect(c)
c:RegisterEffect(e1)
end
function c35486099.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and chkc:IsSetCard(0x34) end
if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and chkc:IsSetCard(0x1034) end
if chk==0 then
if not Duel.IsExistingTarget(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x34) then return false end
if not Duel.IsExistingTarget(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x1034) then return false end
if e:GetHandler():IsLocation(LOCATION_HAND) then
return Duel.GetLocationCount(tp,LOCATION_SZONE)>1
else return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
......@@ -21,7 +21,7 @@ function c35486099.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
if ft>2 then ft=2 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectTarget(tp,Card.IsSetCard,tp,LOCATION_GRAVE,0,1,ft,nil,0x34)
local g=Duel.SelectTarget(tp,Card.IsSetCard,tp,LOCATION_GRAVE,0,1,ft,nil,0x1034)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,2,0,0)
end
function c35486099.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -10,19 +10,19 @@ function c47121070.initial_effect(c)
c:RegisterEffect(e1)
end
function c47121070.filter(c,tp)
return c:IsSetCard(0x34) and c:IsLocation(LOCATION_GRAVE) and c:GetPreviousControler()==tp and c:IsReason(REASON_BATTLE)
return c:IsSetCard(0x1034) and c:IsLocation(LOCATION_GRAVE) and c:GetPreviousControler()==tp and c:IsReason(REASON_BATTLE)
end
function c47121070.tfcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c47121070.filter,1,nil,tp)
end
function c47121070.tftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x34) end
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x1034) end
end
function c47121070.tfop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,1,1,nil,0x34)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,1,1,nil,0x1034)
if g:GetCount()>0 then
local tc=g:GetFirst()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
......
......@@ -37,7 +37,7 @@ function c47408488.initial_effect(c)
end
function c47408488.eqcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
return tc:IsFaceup() and tc:IsSetCard(0x34)
return tc:IsFaceup() and tc:IsSetCard(0x1034)
end
function c47408488.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x6,1)
......@@ -58,7 +58,7 @@ function c47408488.plop(e,tp,eg,ep,ev,re,r,rp)
if ft<=0 then return end
if ft>e:GetLabel() then ft=e:GetLabel() end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,ft,ft,nil,0x34)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK,0,ft,ft,nil,0x1034)
if g:GetCount()>0 then
local tc=g:GetFirst()
while tc do
......
......@@ -11,7 +11,7 @@ function c60876124.initial_effect(c)
c:RegisterEffect(e1)
end
function c60876124.filter(c)
return c:IsFaceup() and c:IsSetCard(0x34)
return c:IsFaceup() and c:IsSetCard(0x1034)
end
function c60876124.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c60876124.filter,tp,LOCATION_SZONE,0,2,nil)
......
......@@ -12,7 +12,7 @@ function c63806265.initial_effect(c)
c:RegisterEffect(e1)
end
function c63806265.cfilter(c)
return c:IsSetCard(0x34) and (not c:IsOnField() or c:IsFaceup())
return c:IsSetCard(0x1034) and (not c:IsOnField() or c:IsFaceup())
end
function c63806265.condition(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c63806265.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
......
......@@ -35,7 +35,9 @@ function c66127916.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
local tc=Duel.GetFirstMatchingCard(c66127916.filter3,tp,LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(c66127916.filter3,tp,LOCATION_GRAVE,0,1,1,nil)
local tc=tg:GetFirst()
if tc and Duel.SelectYesNo(tp,aux.Stringid(66127916,0)) then
Duel.BreakEffect()
Duel.SendtoHand(tc,nil,REASON_EFFECT)
......
......@@ -39,7 +39,7 @@ end
function c69937550.cbcondition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bt=eg:GetFirst()
return r~=REASON_REPLACE and c~=bt and bt:IsFaceup() and bt:IsSetCard(0x34) and bt:GetControler()==c:GetControler()
return r~=REASON_REPLACE and c~=bt and bt:IsFaceup() and bt:IsSetCard(0x1034) and bt:GetControler()==c:GetControler()
end
function c69937550.cboperation(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeAttackTarget(e:GetHandler())
......
......@@ -43,13 +43,13 @@ function c7093411.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseEvent(c,47408488,e,0,tp,0,0)
end
function c7093411.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,1,nil,0x34)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,1,nil,0x1034)
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
end
function c7093411.operation(e,tp,eg,ep,ev,re,r,rp,chk)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,0x34)
local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,0x1034)
if g:GetCount()>0 then
local tc=g:GetFirst()
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
......
......@@ -11,7 +11,7 @@ function c72881007.initial_effect(c)
c:RegisterEffect(e1)
end
function c72881007.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsAbleToGraveAsCost()
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
end
function c72881007.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
......@@ -21,7 +21,7 @@ function c72881007.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function c72881007.filter(c,e,tp)
return c:IsSetCard(0x34) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c72881007.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -16,7 +16,7 @@ function c7617253.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer()
end
function c7617253.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsAbleToGraveAsCost()
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
end
function c7617253.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c7617253.costfilter,tp,LOCATION_SZONE,0,1,nil) end
......
......@@ -48,7 +48,7 @@ function c79856792.initial_effect(c)
c:RegisterEffect(e5)
end
function c79856792.spfilter(c)
return c:IsSetCard(0x34) and (not c:IsOnField() or c:IsFaceup())
return c:IsSetCard(0x1034) and (not c:IsOnField() or c:IsFaceup())
end
function c79856792.spcon(e,c)
if c==nil then return true end
......@@ -66,7 +66,7 @@ function c79856792.atcon(e,tp,eg,ep,ev,re,r,rp)
return phase~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c79856792.afilter(c)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsAbleToGraveAsCost()
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
end
function c79856792.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c79856792.afilter,tp,LOCATION_MZONE,0,1,nil) end
......@@ -89,7 +89,7 @@ function c79856792.tdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(79856792)==0
end
function c79856792.cfilter(c)
return c:IsSetCard(0x34) and c:IsAbleToRemoveAsCost()
return c:IsSetCard(0x1034) and c:IsAbleToRemoveAsCost()
end
function c79856792.tdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c79856792.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -11,7 +11,7 @@ function c8275702.initial_effect(c)
c:RegisterEffect(e1)
end
function c8275702.filter(c,e,sp)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsCanBeSpecialSummoned(e,0,sp,true,false)
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,sp,true,false)
end
function c8275702.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c8275702.filter(chkc,e,tp) end
......
......@@ -23,7 +23,7 @@ function c8559793.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c8559793.cfilter,tp,LOCATION_MZONE,0,2,nil)
end
function c8559793.filter(c)
return c:IsSetCard(0xb9) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
return c:IsSetCard(0xba) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end
function c8559793.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c8559793.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
......
......@@ -11,13 +11,13 @@ function c95326659.initial_effect(c)
c:RegisterEffect(e1)
end
function c95326659.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x34)
return c:IsFaceup() and c:IsSetCard(0x1034)
end
function c95326659.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c95326659.cfilter,tp,LOCATION_SZONE,0,2,nil)
end
function c95326659.filter(c,e,tp)
return c:IsSetCard(0x34) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end
function c95326659.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -12,7 +12,7 @@ function c96331676.initial_effect(c)
c:RegisterEffect(e1)
end
function c96331676.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x34) and c:IsAbleToGraveAsCost()
return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
end
function c96331676.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c96331676.costfilter,tp,LOCATION_SZONE,0,1,nil) end
......
......@@ -142,11 +142,12 @@ function Auxiliary.SynCondition(f1,f2,minct,maxc)
return Duel.CheckSynchroMaterial(c,f1,f2,minc,maxc,smat,mg)
end
end
function Auxiliary.SynOperation(f1,f2,minc,maxc)
function Auxiliary.SynOperation(f1,f2,minct,maxc)
return function(e,tp,eg,ep,ev,re,r,rp,c,smat,mg)
local g=nil
local ft=Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)
local ct=-ft
local minc=minct
if minc<ct then minc=ct end
if smat and smat:IsType(TYPE_TUNER) and (not f1 or f1(smat)) then
g=Duel.SelectTunerMaterial(c:GetControler(),c,smat,f1,f2,minc,maxc,mg)
......
......@@ -435,3 +435,5 @@
!counter 0x31 希望剑指示物
!counter 0x32 气球指示物
!counter 0x33 妖仙指示物
!counter 0x34 指示物(BOX
!counter 0x35 音响指示物
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