Commit afce438f authored by mercury233's avatar mercury233

temp update

parent 98568bee
...@@ -39,6 +39,7 @@ function c100413009.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,6 +39,7 @@ function c100413009.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
if not Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP) then rt=rt-1 end if not Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP) then rt=rt-1 end
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
local ct=c:RemoveOverlayCard(tp,1,rt,REASON_COST) local ct=c:RemoveOverlayCard(tp,1,rt,REASON_COST)
if not YGO233_0715UPDATED then ct=Duel.GetOperatedGroup():GetCount() end
e:SetLabel(ct) e:SetLabel(ct)
end end
function c100413009.efftg(e,tp,eg,ep,ev,re,r,rp,chk) function c100413009.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -42,7 +42,11 @@ function c101010010.tgfilter(c,tp,ec) ...@@ -42,7 +42,11 @@ function c101010010.tgfilter(c,tp,ec)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c101010010.lfilter,tp,LOCATION_EXTRA,0,1,nil,mg) return c:IsFaceup() and Duel.IsExistingMatchingCard(c101010010.lfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
end end
function c101010010.lfilter(c,mg) function c101010010.lfilter(c,mg)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsLinkSummonable(mg,nil,2,2) if YGO233_0715UPDATED then
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsLinkSummonable(mg,nil,2,2)
else
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsLinkSummonable(mg,2,2)
end
end end
function c101010010.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010010.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -62,7 +66,11 @@ function c101010010.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +66,11 @@ function c101010010.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101010010.lfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg) local g=Duel.SelectMatchingCard(tp,c101010010.lfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg)
local lc=g:GetFirst() local lc=g:GetFirst()
if lc then if lc then
Duel.LinkSummon(tp,lc,mg,nil,2,2) if YGO233_0715UPDATED then
Duel.LinkSummon(tp,lc,mg,nil,2,2)
else
Duel.LinkSummon(tp,lc,mg,2,2)
end
end end
end end
end end
......
...@@ -43,7 +43,11 @@ function c101010043.tgfilter(c,tp,ec) ...@@ -43,7 +43,11 @@ function c101010043.tgfilter(c,tp,ec)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL) and Duel.IsExistingMatchingCard(c101010043.lfilter,tp,LOCATION_EXTRA,0,1,nil,mg) return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL) and Duel.IsExistingMatchingCard(c101010043.lfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
end end
function c101010043.lfilter(c,mg) function c101010043.lfilter(c,mg)
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsCode(101010043) and c:IsLinkSummonable(mg,nil,2,2) if YGO233_0715UPDATED then
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsCode(101010043) and c:IsLinkSummonable(mg,nil,2,2)
else
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsCode(101010043) and c:IsLinkSummonable(mg,2,2)
end
end end
function c101010043.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010043.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -63,7 +67,11 @@ function c101010043.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +67,11 @@ function c101010043.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101010043.lfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg) local g=Duel.SelectMatchingCard(tp,c101010043.lfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg)
local lc=g:GetFirst() local lc=g:GetFirst()
if lc then if lc then
Duel.LinkSummon(tp,lc,mg,nil,2,2) if YGO233_0715UPDATED then
Duel.LinkSummon(tp,lc,mg,nil,2,2)
else
Duel.LinkSummon(tp,lc,mg,2,2)
end
end end
end end
end end
......
...@@ -37,7 +37,11 @@ function c101010044.tgfilter(c,tp,ec) ...@@ -37,7 +37,11 @@ function c101010044.tgfilter(c,tp,ec)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c101010044.lfilter,tp,LOCATION_EXTRA,0,1,nil,mg) return c:IsFaceup() and Duel.IsExistingMatchingCard(c101010044.lfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
end end
function c101010044.lfilter(c,mg) function c101010044.lfilter(c,mg)
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsCode(101010044) and c:IsLinkSummonable(mg,nil,2,2) if YGO233_0715UPDATED then
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsCode(101010044) and c:IsLinkSummonable(mg,nil,2,2)
else
return c:IsAttribute(ATTRIBUTE_DARK) and not c:IsCode(101010044) and c:IsLinkSummonable(mg,2,2)
end
end end
function c101010044.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c101010044.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -57,7 +61,11 @@ function c101010044.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +61,11 @@ function c101010044.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101010044.lfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg) local g=Duel.SelectMatchingCard(tp,c101010044.lfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg)
local lc=g:GetFirst() local lc=g:GetFirst()
if lc then if lc then
Duel.LinkSummon(tp,lc,mg,nil,2,2) if YGO233_0715UPDATED then
Duel.LinkSummon(tp,lc,mg,nil,2,2)
else
Duel.LinkSummon(tp,lc,mg,2,2)
end
end end
end end
end end
......
...@@ -31,17 +31,49 @@ function c101010049.lkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,17 +31,49 @@ function c101010049.lkcon(e,tp,eg,ep,ev,re,r,rp)
and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end end
function c101010049.lktg(e,tp,eg,ep,ev,re,r,rp,chk) function c101010049.lktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,nil,nil,e:GetHandler()) end if chk==0 then
if YGO233_0715UPDATED then
return Duel.IsExistingMatchingCard(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,nil,nil,e:GetHandler())
else
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_MUST_BE_LMATERIAL)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,0)
e:GetHandler():RegisterEffect(e1,true)
local res=Duel.IsExistingMatchingCard(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,nil,nil)
e1:Reset()
return res
end
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c101010049.lkop(e,tp,eg,ep,ev,re,r,rp) function c101010049.lkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsControler(1-tp) or not c:IsRelateToEffect(e) then return end if c:IsControler(1-tp) or not c:IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,nil,nil,c) if YGO233_0715UPDATED then
if g:GetCount()>0 then local g=Duel.GetMatchingGroup(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,nil,nil,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if g:GetCount()>0 then
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.LinkSummon(tp,sg:GetFirst(),nil,c) local sg=g:Select(tp,1,1,nil)
Duel.LinkSummon(tp,sg:GetFirst(),nil,c)
end
else
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_MUST_BE_LMATERIAL)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(1,0)
c:RegisterEffect(e1,true)
local g=Duel.GetMatchingGroup(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,nil,nil)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
Duel.LinkSummon(tp,sg:GetFirst(),nil)
end
e1:Reset()
end end
end end
function c101010049.indcon(e,tp,eg,ep,ev,re,r,rp) function c101010049.indcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -24,7 +24,11 @@ function c101010051.initial_effect(c) ...@@ -24,7 +24,11 @@ function c101010051.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c101010051.lkfilter(c,mc) function c101010051.lkfilter(c,mc)
return c:IsSetCard(0x119) and c:IsLinkSummonable(nil,mc) if YGO233_0715UPDATED then
return c:IsSetCard(0x119) and c:IsLinkSummonable(nil,mc)
else
return c:IsSetCard(0x119) and (mc:IsLocation(LOCATION_HAND) and c:IsType(TYPE_LINK) or c:IsLinkSummonable(nil))
end
end end
function c101010051.spfilter(c,e,tp) function c101010051.spfilter(c,e,tp)
return c:IsSetCard(0x119) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x119) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -51,12 +55,27 @@ function c101010051.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,12 +55,27 @@ function c101010051.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
local e233
if not YGO233_0715UPDATED then
e233=Effect.CreateEffect(c)
e233:SetType(EFFECT_TYPE_FIELD)
e233:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e233:SetCode(EFFECT_MUST_BE_LMATERIAL)
e233:SetRange(LOCATION_MZONE)
e233:SetTargetRange(1,0)
tc:RegisterEffect(e233,true)
end
local tg=Duel.GetMatchingGroup(c101010051.lkfilter,tp,LOCATION_EXTRA,0,nil,tc) local tg=Duel.GetMatchingGroup(c101010051.lkfilter,tp,LOCATION_EXTRA,0,nil,tc)
if tg:GetCount()>0 then if tg:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=tg:Select(tp,1,1,nil) local sg=tg:Select(tp,1,1,nil)
local sc=sg:GetFirst() local sc=sg:GetFirst()
Duel.LinkSummon(tp,sc,nil,tc) if YGO233_0715UPDATED then
Duel.LinkSummon(tp,sc,nil,tc)
else
Duel.LinkSummon(tp,sc,nil)
e233:Reset()
end
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_ATTACK) e3:SetCode(EFFECT_CANNOT_ATTACK)
......
--ドカンポリン --ドカンポリン
--Scripted by nekrozar --Scripted by nekrozar
--need Duel.SelectDisableField or Duel.SelectSequence update
function c101010080.initial_effect(c) function c101010080.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -23,10 +24,39 @@ function c101010080.initial_effect(c) ...@@ -23,10 +24,39 @@ function c101010080.initial_effect(c)
end end
function c101010080.target(e,tp,eg,ep,ev,re,r,rp,chk) function c101010080.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)+Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)+Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)
if Duel.CheckLocation(tp,LOCATION_MZONE,5) and Duel.CheckLocation(1-tp,LOCATION_MZONE,6) then ft=ft+1 end local b1=Duel.CheckLocation(tp,LOCATION_MZONE,5) and Duel.CheckLocation(1-tp,LOCATION_MZONE,6)
if Duel.CheckLocation(tp,LOCATION_MZONE,6) and Duel.CheckLocation(1-tp,LOCATION_MZONE,5) then ft=ft+1 end local b2=Duel.CheckLocation(tp,LOCATION_MZONE,6) and Duel.CheckLocation(1-tp,LOCATION_MZONE,5)
if b1 then ft=ft+1 end
if b2 then ft=ft+1 end
if chk==0 then return ft>0 end if chk==0 then return ft>0 end
local seq=Duel.SelectDisableField(tp,1,LOCATION_MZONE,LOCATION_MZONE,0) local off=1
local ops={}
local opval={}
if Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0)+Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0)>0 then
ops[off]=aux.Stringid(101010080,1)
opval[off-1]=1
off=off+1
end
if b1 then
ops[off]=aux.Stringid(101010080,2)
opval[off-1]=2
off=off+1
end
if b2 then
ops[off]=aux.Stringid(101010080,3)
opval[off-1]=3
off=off+1
end
if off==1 then return end
local op=Duel.SelectOption(tp,table.unpack(ops))
local seq=nil
if op==0 then
seq=Duel.SelectDisableField(tp,1,LOCATION_MZONE,LOCATION_MZONE,0)
elseif op==1 then
seq=0x400020
else
seq=0x200040
end
e:SetLabel(seq) e:SetLabel(seq)
end end
function c101010080.cfilter(c,seq,tp) function c101010080.cfilter(c,seq,tp)
......
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