Commit 70b3ee5c authored by Huangnan's avatar Huangnan

fix

parent 739012bc
Pipeline #39911 passed with stage
in 1 minute and 36 seconds
No preview for this file type
expansions/pics/12400152.jpg

135 KB | W: | H:

expansions/pics/12400152.jpg

72.2 KB | W: | H:

expansions/pics/12400152.jpg
expansions/pics/12400152.jpg
expansions/pics/12400152.jpg
expansions/pics/12400152.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12802050.jpg

90.5 KB | W: | H:

expansions/pics/12802050.jpg

87.4 KB | W: | H:

expansions/pics/12802050.jpg
expansions/pics/12802050.jpg
expansions/pics/12802050.jpg
expansions/pics/12802050.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/16401190.jpg

52.3 KB | W: | H:

expansions/pics/16401190.jpg

96.5 KB | W: | H:

expansions/pics/16401190.jpg
expansions/pics/16401190.jpg
expansions/pics/16401190.jpg
expansions/pics/16401190.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -65,7 +65,7 @@ function cm.after4Turns(e, tp, f, ct, summon_type, loc)
if ct > 4 then ct = 4 end
if Duel.IsPlayerAffectedByEffect(tp, 59822133) then ct = 1 end
ct = math.min(g:GetClassCount(Card.GetCode), ct)
local sg = g:SelectSubGroup(tp, aux.dncheck, false, ct, ct)
local sg = g:SelectSubGroup(tp, aux.dncheck, false, 1, ct)
if #sg > 0 then
cm.SpSummon(tp, e:GetHandler(), sg, summon_type)
end
......
......@@ -20,6 +20,7 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_ANNOUNCE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m)
e2:SetCondition(cm.crcon1)
e2:SetTarget(cm.crtg)
e2:SetOperation(cm.crop)
......@@ -37,7 +38,6 @@ function cm.initial_effect(c)
e3:SetTarget(cm.xyztg)
e3:SetOperation(cm.xyzop)
c:RegisterEffect(e3)
--RANK CHANGE QuickBuff
local e2_1=e2:Clone()
e2_1:SetType(EFFECT_TYPE_QUICK_O)
......
......@@ -87,39 +87,25 @@ function cm.copyfilter(c)
end
function cm.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
local cg=c:GetOverlayGroup()
if chk==0 then return cg:IsExists(cm.copyfilter,1,nil) end
if chk==0 then return c:GetOverlayCount()>0 end
end
function cm.copyop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local cg=c:GetOverlayGroup()
local num=Duel.GetTurnCount()
local sg=cg:Filter(cm.copyfilter,nil)
local ct=0
if sg:GetCount()>0 and c:IsRelateToEffect(e) and c:IsFaceup() then
for tc in aux.Next(sg) do
local code=tc:GetOriginalCodeRule()
Duel.Hint(HINT_CARD,tp,code)
Duel.Hint(HINT_CARD,1-tp,code)
local cid=0
if not tc:IsType(TYPE_TRAPMONSTER) then
cid=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
local ct=c:GetOverlayCount()
if ct>0 then
if c:AddCounter(nova,ct) then
local cg=c:GetOverlayGroup()
local num=Duel.GetTurnCount()
local sg=cg:Filter(cm.copyfilter,nil)
if sg:GetCount()>0 and c:IsRelateToEffect(e) and c:IsFaceup() and Duel.SelectYesNo(tp,aux.Stringid(m,7)) then
Duel.BreakEffect()
for tc in aux.Next(sg) do
local code=tc:GetOriginalCodeRule()
Duel.Hint(HINT_CARD,tp,code)
local cid=c:CopyEffect(code,0,0)
end
end
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,2))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
e3:SetLabel(cid)
e3:SetValue(num)
e3:SetCondition(cm.rscon)
e3:SetOperation(cm.rstop)
c:RegisterEffect(e3)
end
c:AddCounter(nova,sg:GetCount())
end
end
function cm.rscon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -36,6 +36,14 @@ function this.initial_effect(c)
e4:SetCondition(this.efcon)
e4:SetOperation(this.efop)
c:RegisterEffect(e4)
--Change Race
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_CHANGE_RACE)
e5:SetRange(LOCATION_MZONE)
e5:SetValue(RACE_MACHINE)
c:RegisterEffect(e5)
end
--Effect 2
function this.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -37,6 +37,14 @@ function this.initial_effect(c)
e4:SetCondition(this.efcon)
e4:SetOperation(this.efop)
c:RegisterEffect(e4)
--Change Race
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_CHANGE_RACE)
e5:SetRange(LOCATION_MZONE)
e5:SetValue(RACE_MACHINE)
c:RegisterEffect(e5)
end
--Effect 2
function this.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -37,6 +37,14 @@ function this.initial_effect(c)
e4:SetCondition(this.efcon)
e4:SetOperation(this.efop)
c:RegisterEffect(e4)
--Change Race
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e5:SetCode(EFFECT_CHANGE_RACE)
e5:SetRange(LOCATION_MZONE)
e5:SetValue(RACE_MACHINE)
c:RegisterEffect(e5)
end
--Effect 2
function this.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -45,13 +45,17 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(0,1)
e1:SetValue(cm.aclimit)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetTargetRange(LOCATION_ONFIELD+LOCATION_GRAVE,0)
e1:SetTarget(cm.imlimit)
e1:SetValue(aux.tgoval)
e1:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e1,tp)
end
function cm.imlimit(e,c)
return true
end
function cm.aclimit(e,re,tp)
return re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
end
......
......@@ -2,6 +2,8 @@
if not pcall(function() dofile("expansions/script/c16199990.lua") end) then dofile("expansions/script/c16199990.lua") end
local m,cm=rk.set(16110052,"alcadias")
function cm.initial_effect(c)
--change name
aux.EnableChangeCode(c,16110015,LOCATION_HAND+LOCATION_DECK+LOCATION_MZONE+LOCATION_GRAVE)
Duel.EnableGlobalFlag(GLOBALFLAG_SPSUMMON_COUNT)
--summon with s/t
local e0=Effect.CreateEffect(c)
......@@ -39,8 +41,7 @@ function cm.initial_effect(c)
end
--mat
function cm.rlscheck(e,c)
if not c:IsType(TYPE_SPELL+TYPE_TRAP) then return false end
return not (Duel.GetCurrentChain()<2 and (c:IsStatus(STATUS_LEAVE_CONFIRMED) or c:IsStatus(STATUS_ACTIVATE_DISABLED)))
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
--Effect 1
function cm.sumcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -19,7 +19,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.mfilter(c)
return c:IsRace(RACE_ZOMBIE)
return c:IsRace(RACE_ZOMBIE) and not c:IsType(TYPE_LINK)
end
function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
......
......@@ -27,7 +27,7 @@ function cm.filter1(c)
return c:IsFaceup() and c:IsRace(RACE_AQUA) and c:IsCanBeFusionMaterial() and c:IsAbleToRemove()
end
function cm.ffilter(c)
return c:IsCanBeFusionMaterial() and c:IsAbleToRemove()
return c:IsCanBeFusionMaterial() and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end
function cm.ffilter2(c,e)
return cm.ffilter(c) and not c:IsImmuneToEffect(e)
......
......@@ -150,7 +150,8 @@ function s.cfilter(c,p)
return c:IsPreviousLocation(LOCATION_DECK) and c:IsPreviousControler(p) and c:IsControler(p)
end
function s.reccon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(aux.AlreadyInRangeFilter(e,s.cfilter),1,nil,1-tp)
local c=e:GetHandler()
return c:IsType(TYPE_CONTINUOUS) and not eg:IsContains(c) and eg:IsExists(aux.AlreadyInRangeFilter(e,s.cfilter),1,nil,1-tp)
end
function s.flaglabel(e,tp,eg,ep,ev,re,r,rp)
local fid=e:GetHandler():GetFieldID()
......
......@@ -78,10 +78,10 @@ function c71404000.op1(e,tp,eg,ep,ev,re,r,rp)
end
end
function c71404000.filter2a(c)
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:GetOriginalType()&(TYPE_RITUAL+TYPE_MONSTER)~=0
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:GetOriginalType()&(TYPE_RITUAL+TYPE_MONSTER)==TYPE_RITUAL+TYPE_MONSTER
end
function c71404000.filter2b(c)
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:GetOriginalType()&(TYPE_LINK+TYPE_MONSTER)~=0
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:GetOriginalType()&(TYPE_LINK+TYPE_MONSTER)==TYPE_LINK+TYPE_MONSTER
end
function c71404000.con2(e)
return Duel.IsExistingMatchingCard(c71404000.filter2a,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
......@@ -622,7 +622,7 @@ function yume.stellar_memories.MultiRitualOperation(greater_or_equal,summon_loca
else
local lv=mc:GetLink()*2
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)aux.GCheckAdditional=yume.stellar_memories.MultiRitualCheckAdditional(lv)
local tg=mg:SelectSubGroup(tp,yume.stellar_memories.MultiRitualFSelect,true,1,ft,tp,lv)
local tg=sg:SelectSubGroup(tp,yume.stellar_memories.MultiRitualFSelect,true,1,ft,tp,lv)
aux.GCheckAdditional=nil
if not tg then goto cancel end
local tc=tg:GetFirst()
......
......@@ -31,7 +31,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
--equipped
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_EQUIP)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCategory(CATEGORY_DISABLE)
e3:SetCode(EVENT_CHAIN_SOLVING)
e3:SetRange(LOCATION_SZONE)
......
......@@ -21,7 +21,7 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
--equipped
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+TYPE_EQUIP+EFFECT_TYPE_CONTINUOUS)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(s.con2)
......
......@@ -64,7 +64,7 @@ function s.filter1(c)
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsFaceupEx() and not c:IsForbidden()
end
function s.filter1a(c)
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:GetOriginalType()&(TYPE_RITUAL+TYPE_MONSTER)~=0
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER) and c:GetOriginalType()&(TYPE_RITUAL+TYPE_MONSTER)==TYPE_RITUAL+TYPE_MONSTER
end
function s.getcolumns(g)
local cols={}
......
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