Commit 2683f4b5 authored by 森野さくら's avatar 森野さくら 🐟

update

parent ebd9cbc7
......@@ -41,10 +41,10 @@ function cm.initial_effect(c)
e4:SetCode(EVENT_CHAINING)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,EFFECT_COUNT_CODE_CHAIN)
e4:SetCondition(cm.descon2)
e4:SetCost(cm.descost2)
e4:SetTarget(cm.destg2)
e4:SetOperation(cm.desop2)
e4:SetCondition(cm.descon)
e4:SetCost(cm.descost)
e4:SetTarget(cm.destg)
e4:SetOperation(cm.desop)
c:RegisterEffect(e4)
--tograve
local e6=Effect.CreateEffect(c)
......@@ -67,8 +67,8 @@ function cm.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) or aux.fuslimit(e,se,sp,st)
end
function cm.hspfilter(c,tp,sc)
return c:GetOverlayCount()>=3 and c:IsCode(21580000)
and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,c,sc)>0 and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
return c:GetOverlayCount()>=3 and c:IsFusionCode(21580000) and c:IsControler(tp) and Duel.GetLocationCountFromEx(tp,tp,c,sc)>0
and c:IsCanBeFusionMaterial(sc,SUMMON_TYPE_SPECIAL)
end
function cm.hspcon(e,c)
if c==nil then return true end
......@@ -83,22 +83,27 @@ function cm.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
return true
else return false end
end
function cm.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local tc=e:GetLabelObject()
c:SetMaterial(Group.FromCards(tc))
Duel.Release(tc,REASON_SPSUMMON)
end
function cm.efftg(e,c)
return c==e:GetHandler() or c:GetControler()~=e:GetHandlerPlayer()
end
function cm.descon2(e,tp,eg,ep,ev,re,r,rp)
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsOnField() and re:GetHandler():IsRelateToEffect(re)
and rp~=tp
end
function cm.descost2(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000)
end
function cm.destg2(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return re:GetHandler():IsDestructable() end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
function cm.desop2(e,tp,eg,ep,ev,re,r,rp)
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
......
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.spfilter(c,e,tp)
return c:IsCode(21520099) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsCode(21580099) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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