Commit 12ffddbd authored by Tachibana's avatar Tachibana

eme

parent 54b01911
No preview for this file type
......@@ -78,7 +78,7 @@ function cm.con2(e)
return not Duel.IsExistingMatchingCard(cm.filter2,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
function cm.rmtarget(e,c)
return not c:IsLocation(0x80) and not c:IsSetCard(0x5a71)
return not c:IsLocation(0x80) and not c:IsSetCard(0x6a71)
end
function cm.checktg(e,c)
return not c:IsPublic()
......
......@@ -24,23 +24,14 @@ function c33200436.initial_effect(c)
e2:SetOperation(c33200436.atkop)
c:RegisterEffect(e2)
--immune spell
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetValue(c33200436.efilter)
c:RegisterEffect(e2)
--to grave
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TOGRAVE+CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,33200438)
e3:SetTarget(c33200436.tgtg)
e3:SetOperation(c33200436.tgop)
-- c:RegisterEffect(e3)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(c33200436.efilter)
c:RegisterEffect(e3)
end
--e1
......@@ -91,26 +82,3 @@ function c33200436.atkval(e,c)
return 0-500*g:GetCount()
end
--e3
function c33200436.tgfilter(c)
return c:IsType(TYPE_SPELL) and c:IsAbleToGrave()
end
function c33200436.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_DECK)
end
function c33200436.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetMatchingGroupCount(c33200433.tgfilter,1-tp,LOCATION_DECK,0,nil,TYPE_SPELL)>=1 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(1-tp,c33200433.tgfilter,1-tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()~=0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
else
if c:IsRelateToEffect(e) and c:IsAbleToHand() then
Duel.SendtoHand(c,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,c)
end
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