Commit 593f327d authored by wind2009's avatar wind2009

Update 青き眼の精霊

parent cfe8b857
...@@ -13,9 +13,9 @@ function s.initial_effect(c) ...@@ -13,9 +13,9 @@ function s.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,id) e1:SetCountLimit(1,id)
e1:SetCondition(s.condition)
e1:SetTarget(s.target) e1:SetTarget(s.target)
e1:SetOperation(s.operation) e1:SetOperation(s.operation)
e1:SetCondition(s.condition)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--splimit --splimit
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -41,6 +41,9 @@ end ...@@ -41,6 +41,9 @@ end
function s.mfilter(c) function s.mfilter(c)
return (c:IsLinkRace(RACE_DRAGON) or c:IsLinkRace(RACE_SPELLCASTER)) and c:IsLevelBelow(4) return (c:IsLinkRace(RACE_DRAGON) or c:IsLinkRace(RACE_SPELLCASTER)) and c:IsLevelBelow(4)
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.cfilter(c) function s.cfilter(c)
return c:IsCode(24382602) and (c:IsAbleToHand() or c:IsAbleToGrave()) return c:IsCode(24382602) and (c:IsAbleToHand() or c:IsAbleToGrave())
end end
...@@ -62,9 +65,6 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,9 +65,6 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function s.splimit(e,c,sump,sumtype,sumpos,targetp) function s.splimit(e,c,sump,sumtype,sumpos,targetp)
return not c:IsRace(RACE_DRAGON) return not c:IsRace(RACE_DRAGON)
end end
......
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