Commit 6e3de018 authored by Tachibana's avatar Tachibana

eme

parent f1cd255b
......@@ -52,13 +52,16 @@ function cm.initial_effect(c)
e6:SetCode(EFFECT_SET_BASE_ATTACK)
e6:SetValue(c:GetBaseAttack()+700)
c:RegisterEffect(e6)
--
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e7:SetCode(EVENT_TO_GRAVE)
e7:SetRange(LOCATION_MZONE)
e7:SetOperation(cm.thop)
c:RegisterEffect(e7)
--REDIRECT
local e8=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_FIELD)
e8:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_RANGE+EFFECT_FLAG_IGNORE_IMMUNE)
e8:SetRange(LOCATION_MZONE)
e8:SetCode(EFFECT_TO_GRAVE_REDIRECT)
e8:SetTarget(cm.thtg)
e8:SetTargetRange(0xff,0xff)
e8:SetValue(LOCATION_HAND)
c:RegisterEffect(e8)
end
function cm.chklsn(c)
return c:IsHasEffect(12300706) or c:IsLinkSetCard(0x2d7)
......@@ -127,9 +130,10 @@ end
function cm.fildes(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x2d7) and c:IsReason(REASON_DESTROY) and c:IsAbleToHand()
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local og=eg:Filter(cm.fildes,nil)
if og:GetCount()>0 then
Duel.SendtoHand(og,nil,REASON_EFFECT)
function cm.thtg(e,c)
if cm.fildes(c) then
if c:IsFacedown() then Duel.ConfirmCards(0,c) end
return true
else return false
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