Commit 7c315f38 authored by mercury233's avatar mercury233 Committed by GitHub

update 異次元隔離マシーン

parent ec0f161a
...@@ -11,8 +11,9 @@ function c56460688.initial_effect(c) ...@@ -11,8 +11,9 @@ function c56460688.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--return --return
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(c56460688.retcon)
e2:SetOperation(c56460688.retop) e2:SetOperation(c56460688.retop)
e2:SetLabelObject(e1) e2:SetLabelObject(e1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -48,9 +49,11 @@ function c56460688.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,9 +49,11 @@ function c56460688.operation(e,tp,eg,ep,ev,re,r,rp)
e:SetLabelObject(g) e:SetLabelObject(g)
end end
end end
function c56460688.retcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(56460688)~=0 and bit.band(r,REASON_DESTROY)~=0
and e:GetLabelObject():GetLabelObject()~=nil
end
function c56460688.retop(e,tp,eg,ep,ev,re,r,rp) function c56460688.retop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(56460688)==0 then return end
if bit.band(r,REASON_DESTROY)~=0 then
local g=e:GetLabelObject():GetLabelObject() local g=e:GetLabelObject():GetLabelObject()
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
...@@ -61,5 +64,4 @@ function c56460688.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,5 +64,4 @@ function c56460688.retop(e,tp,eg,ep,ev,re,r,rp)
end end
g:DeleteGroup() g:DeleteGroup()
e:GetLabelObject():SetLabelObject(nil) e:GetLabelObject():SetLabelObject(nil)
end
end end
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