Commit defee741 authored by Tachibana's avatar Tachibana

1145141919810

parent 72af43c5
Pipeline #14457 passed with stages
in 24 minutes and 11 seconds
...@@ -9,9 +9,10 @@ function mc.CRE(c,f,v,reg) ...@@ -9,9 +9,10 @@ function mc.CRE(c,f,v,reg)
if not reg then c:RegisterEffect(e) end if not reg then c:RegisterEffect(e) end
return e return e
end end
function mc.c_loc(loc) function mc.c_loc(...)
local v = 0 local v = 0
loc = type(loc) == "table" and loc or {loc} local loc = {...}
loc = type(loc[1]) == "table" and loc[1] or loc
for _,l in ipairs(loc) do for _,l in ipairs(loc) do
l = type(l) == "string" and mc.loc[l] or l l = type(l) == "string" and mc.loc[l] or l
v = v + l v = v + l
...@@ -183,7 +184,7 @@ mc.eff = { ...@@ -183,7 +184,7 @@ mc.eff = {
["COD"] = Effect.SetCode, ["COD"] = Effect.SetCode,
["CTL"] = Effect.SetCountLimit, ["CTL"] = Effect.SetCountLimit,
["PRO"] = Effect.SetProperty, ["PRO"] = Effect.SetProperty,
["RAN"] = function(e,loc) Effect.SetRange(e,mc.c_loc(loc)) end, ["RAN"] = function(e,...) e:SetRange(mc.c_loc(...)) end,
["CON"] = Effect.SetCondition, ["CON"] = Effect.SetCondition,
["COS"] = Effect.SetCost, ["COS"] = Effect.SetCost,
["TG"] = Effect.SetTarget, ["TG"] = Effect.SetTarget,
...@@ -213,11 +214,11 @@ function mc.con_S_con(e,tp,eg,ep,ev,re,r,rp) ...@@ -213,11 +214,11 @@ function mc.con_S_con(e,tp,eg,ep,ev,re,r,rp)
end end
function mc.tg_SS_tg(e,tp,eg,ep,ev,re,r,rp,chk) function mc.tg_SS_tg(e,tp,eg,ep,ev,re,r,rp,chk)
if Duel.GetTurnCount()==1 and ((e:GetHandler():IsLevel(1) and Duel.GetCurrentPhase()==PHASE_MAIN1) or e:GetHandler():IsLevel(2)) then return end if Duel.GetTurnCount()==1 and ((e:GetHandler():IsLevel(1) and Duel.GetCurrentPhase()==PHASE_MAIN1) or e:GetHandler():IsLevel(2)) then return end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,true) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function mc.tg_SS_op(e,tp,eg,ep,ev,re,r,rp) function mc.tg_SS_op(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,true,true,POS_FACEUP) end
end end
function mc.tg_S_below4(c) function mc.tg_S_below4(c)
return c:IsSetCard(0xb72) and c:IsAbleToHand() and (c:IsLevelBelow(4) or c:IsType(TYPE_SPELL)) return c:IsSetCard(0xb72) and c:IsAbleToHand() and (c:IsLevelBelow(4) or c:IsType(TYPE_SPELL))
...@@ -333,11 +334,11 @@ function mc.SS_Cos_cos(count) ...@@ -333,11 +334,11 @@ function mc.SS_Cos_cos(count)
end end
end end
function mc.SS_Cos_tg(e,tp,eg,ep,ev,re,r,rp,chk) function mc.SS_Cos_tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,false) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,true) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function mc.SS_Cos_op(e,tp,eg,ep,ev,re,r,rp) function mc.SS_Cos_op(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,true,false,POS_FACEUP)~=0 then e:GetHandler():CompleteProcedure() end if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,true,true,POS_FACEUP)~=0 then e:GetHandler():CompleteProcedure() end
end end
function mc.Up_Attack(e) function mc.Up_Attack(e)
local eg=e:GetHandler():GetEquipGroup():Filter(mc.Origin_Monster,nil) local eg=e:GetHandler():GetEquipGroup():Filter(mc.Origin_Monster,nil)
......
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