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

update

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