Commit de4a016e authored by nekrozar's avatar nekrozar

fix

parent 1bf50107
......@@ -7,18 +7,26 @@ function c64373401.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c64373401.hspcon)
e1:SetOperation(c64373401.hspop)
e1:SetValue(1)
c:RegisterEffect(e1)
--spsummon
--spsummon limit
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(64373401,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BE_MATERIAL)
e2:SetCondition(c64373401.spcon)
e2:SetTarget(c64373401.sptg)
e2:SetOperation(c64373401.spop)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c64373401.hspcon2)
e2:SetOperation(c64373401.hspop)
c:RegisterEffect(e2)
--spsummon
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(64373401,0))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BE_MATERIAL)
e3:SetCondition(c64373401.spcon)
e3:SetTarget(c64373401.sptg)
e3:SetOperation(c64373401.spop)
c:RegisterEffect(e3)
end
function c64373401.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
......@@ -29,6 +37,9 @@ function c64373401.hspcon(e,c)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and not Duel.IsExistingMatchingCard(c64373401.filter,tp,LOCATION_GRAVE,0,1,nil)
end
function c64373401.hspcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end
function c64373401.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
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