Commit b5682c13 authored by TanakaKotoha's avatar TanakaKotoha

update

parent dbaea568
expansions/pics/16161010.jpg

193 KB | W: | H:

expansions/pics/16161010.jpg

439 KB | W: | H:

expansions/pics/16161010.jpg
expansions/pics/16161010.jpg
expansions/pics/16161010.jpg
expansions/pics/16161010.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -5,3 +5,6 @@ function cm.initial_effect(c)
c:EnableReviveLimit()
aux.AddLinkProcedure(c,cm.mfilter,1,1)
end
function cm.mfilter(c)
return c:IsLinkType(TYPE_XYZ) and ((c:IsRankAbove(10) and c:IsRace(RACE_FAIRY)) or c:IsSetCard(0xcc3))
end
\ No newline at end of file
--创命的大魔术师
if not pcall(function() require("expansions/script/c16104200") end) then require("script/c16104200") end
function c16160004.initial_effect(c)
c:EnableReviveLimit()
aux.EnablePendulumAttribute(c,false)
......@@ -11,8 +10,8 @@ function c16160004.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_PZONE)
e1:SetCountLimit(1,16160004)
e1:SetCondition(c16160004.condition)
e1:SetCost(c16160004.cscost)
e1:SetTarget(c16160004.cstarget)
e1:SetOperation(c16160004.csoperation)
c:RegisterEffect(e1)
......@@ -25,15 +24,6 @@ function c16160004.initial_effect(c)
e2:SetTarget(c16160004.eftg)
e2:SetValue(c16160004.efilter)
c:RegisterEffect(e2)
--cannot release
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_RELEASE)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetRange(LOCATION_PZONE)
e3:SetTargetRange(0,1)
e3:SetTarget(c16160004.rellimit)
c:RegisterEffect(e3)
--------------"Monster EFFECT"----------------
--Removed Card Cannot Effect
local e1_1=Effect.CreateEffect(c)
......@@ -72,11 +62,6 @@ end
function c16160004.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 and not Duel.CheckPhaseActivity()
end
function c16160004.cscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsReleasable,tp,LOCATION_MZONE,0,1,nil) end
local g=Duel.SelectMatchingCard(tp,Card.IsReleasable,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Release(g,REASON_COST)
end
function c16160004.cstarget(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
......@@ -96,6 +81,18 @@ function c16160004.csoperation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function Card.IsComplexReason(c,reason1,reason2,...)
local res_list={reason1,reason2,...}
local public_reason=0
if rsof.Check_Boolean(reason2) then
public_reason=reason1
res_list={...}
end
for _,reason in pairs(res_list) do
if c:GetReason()&(reason|public_reason)==(reason|public_reason) then return true end
end
return false
end
function c16160004.condition1(e)
local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
......@@ -113,9 +110,6 @@ end
function c16160004.efilter(e,te)
return e:GetHandlerPlayer()~=te:GetHandlerPlayer() and (Duel.GetCurrentPhase()>PHASE_BATTLE or Duel.GetCurrentPhase()<PHASE_BATTLE_START)
end
function c16160004.rellimit(e,c,tp,sumtp)
return c:IsType(TYPE_TOKEN) and c:IsControler(e:GetHandlerPlayer())
end
function c16160004.aclimit(e,re,tp)
local rc=re:GetHandler()
return rc:IsStatus(STATUS_BATTLE_DESTROYED) or rc:IsComplexReason(REASON_DESTROY,true,REASON_EFFECT,REASON_BATTLE)
......@@ -129,10 +123,12 @@ function c16160004.desfilter1(c,g)
end
function c16160004.desfilter(c,sc)
local sg=sc:GetEquipGroup()
sg:AddCard(sc)
local gg=Group.CreateGroup()
gg:Merge(sg)
gg:AddCard(sc)
for tc in aux.Next(sg) do
local cg=tc:GetColumnGroup()
local num=Duel.GetMatchingGroupCount(c16160004.desfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,sg,cg)
local num=Duel.GetMatchingGroupCount(c16160004.desfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,gg,cg)
if num>0 then
return true end
end
......@@ -159,6 +155,8 @@ function c16160004.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c16160004.eqfilter(c,sc)
if c:GetControler()==tp then return end
if c:IsType(TYPE_TOKEN) then return end
if c:GetReasonCard() and sc then
return c:GetReasonCard()==sc
elseif c:GetReasonEffect():GetHandler() and sc then
......@@ -195,7 +193,7 @@ function c16160004.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(1000)
tc:RegisterEffect(e2)
local e3=e3:Clone()
local e3=e2:Clone()
e3:SetCode(EFFECT_UPDATE_DEFENSE)
tc:RegisterEffect(e3)
end
......
......@@ -93,7 +93,7 @@ function c16160005.rmcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=eg:GetFirst()
return rc:IsRelateToBattle() and rc:IsStatus(STATUS_OPPO_BATTLE)
and rc:IsFaceup() and rc:IsControler(tp)
and rc:IsFaceup() and rc:IsControler(tp) and rc:IsCode(16160004)
end
function c16160005.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand()
......
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