Commit a277db6e authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c11451910.lua

parent 4394bcc6
Pipeline #32503 passed with stages
in 31 minutes and 41 seconds
......@@ -5,7 +5,7 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
--e1:SetOperation(function() Debug.Message(string.dump(loadfile("expansions/script/c11451909.lua"))) end)
--e1:SetOperation(function() Debug.Message(loadstring(string.dump(function() return 1 end))(1)) end)
c:RegisterEffect(e1)
--sp
local e2=Effect.CreateEffect(c)
......@@ -33,9 +33,13 @@ function cm.initial_effect(c)
end
function cm.filter(c)
local re=c:GetReasonEffect()
if not (c:IsType(TYPE_MONSTER) and not c:IsStatus(STATUS_TO_HAND_WITHOUT_CONFIRM) and re) then return false end
if not re then return false end
local rc=re:GetOwner()
return rc:IsOriginalSetCard(0xc976) --and rc:GetOriginalType()&0x1>0
if not (c:IsType(TYPE_MONSTER) and rc:IsOriginalSetCard(0xc976) and c:IsPreviousLocation(LOCATION_DECK)) then return false end
local b1=not c:IsLocation(LOCATION_HAND+LOCATION_REMOVED)
local b2=c:IsLocation(LOCATION_HAND) and (c:IsPublic() or not c:IsStatus(STATUS_TO_HAND_WITHOUT_CONFIRM))
local b3=c:IsLocation(LOCATION_REMOVED) and c:IsFaceup()
return b1 or b2 or b3
end
function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.filter,nil)
......@@ -141,5 +145,7 @@ function cm.descon(e,tp,eg,ep,ev,re,r,rp)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:GetFlagEffect(m)~=0 then
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
end
\ No newline at end of file
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