Commit 6498c24b authored by Grajade's avatar Grajade

Update c1111003.lua

parent b442a703
Pipeline #33450 passed with stage
in 14 seconds
......@@ -12,7 +12,7 @@ function c1111003.initial_effect(c)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TODECK)
e2:SetCategory(CATEGORY_TODECK+CATEGORY_LEAVE_GRAVE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE)
......@@ -62,15 +62,14 @@ function c1111003.op1(e,tp,eg,ep,ev,re,r,rp)
end
end
--
function c1111003.tfilter2(c,tp,rp)
return c:IsPreviousControler(tp)
and c:IsPreviousPosition(POS_FACEUP)
and c:IsSetCard(0x3e1f) and bit.band(c:GetPreviousTypeOnField(),TYPE_MONSTER)~=0
and c:IsAbleToDeck()
and rp==1-tp and c:IsReason(REASON_EFFECT)
function c1111003.cfilter2(c,tp,rp)
return c:IsPreviousControler(tp) and c:IsPreviousSetCard(0x3e1f) and rp==1-tp and c:IsType(TYPE_SPELL) and c:IsReason(REASON_EFFECT)
end
function c1111003.con2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c1111003.tfilter2,1,nil,tp,rp) and not eg:IsContains(e:GetHandler())
return eg:IsExists(c1111003.cfilter2,1,nil,tp,rp) and not eg:IsContains(e:GetHandler())
end
function c1111003.tfilter2(c,tp,rp)
return c:IsPreviousControler(tp) and c:IsPreviousSetCard(0x3e1f) and rp==1-tp and c:IsType(TYPE_SPELL) and c:IsReason(REASON_EFFECT) and c:IsAbleToDeck()
end
function c1111003.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeck()
......
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