Commit cb185504 authored by DailyShana's avatar DailyShana

update 転生炎獣の聖域

use count limit directly
parent 184a618e
...@@ -12,6 +12,7 @@ function c1295111.initial_effect(c) ...@@ -12,6 +12,7 @@ function c1295111.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE) e2:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetRange(LOCATION_EXTRA) e2:SetRange(LOCATION_EXTRA)
e2:SetCountLimit(1,1295111)
e2:SetCondition(c1295111.linkcon) e2:SetCondition(c1295111.linkcon)
e2:SetOperation(c1295111.linkop) e2:SetOperation(c1295111.linkop)
e2:SetValue(SUMMON_TYPE_LINK) e2:SetValue(SUMMON_TYPE_LINK)
...@@ -46,13 +47,11 @@ function c1295111.linkcon(e,c,og,lmat,min,max) ...@@ -46,13 +47,11 @@ function c1295111.linkcon(e,c,og,lmat,min,max)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.IsExistingMatchingCard(c1295111.lmfilter,tp,LOCATION_MZONE,0,1,nil,c,tp,og,lmat) return Duel.IsExistingMatchingCard(c1295111.lmfilter,tp,LOCATION_MZONE,0,1,nil,c,tp,og,lmat)
and Duel.GetFlagEffect(tp,1295111)==0
end end
function c1295111.linkop(e,tp,eg,ep,ev,re,r,rp,c,og,lmat,min,max) function c1295111.linkop(e,tp,eg,ep,ev,re,r,rp,c,og,lmat,min,max)
local mg=Duel.SelectMatchingCard(tp,c1295111.lmfilter,tp,LOCATION_MZONE,0,1,1,nil,c,tp,og,lmat) local mg=Duel.SelectMatchingCard(tp,c1295111.lmfilter,tp,LOCATION_MZONE,0,1,1,nil,c,tp,og,lmat)
c:SetMaterial(mg) c:SetMaterial(mg)
Duel.SendtoGrave(mg,REASON_MATERIAL+REASON_LINK) Duel.SendtoGrave(mg,REASON_MATERIAL+REASON_LINK)
Duel.RegisterFlagEffect(tp,1295111,RESET_PHASE+PHASE_END,0,1)
end end
function c1295111.mattg(e,c) function c1295111.mattg(e,c)
return c:IsSetCard(0x119) and c:IsType(TYPE_LINK) return c:IsSetCard(0x119) and c:IsType(TYPE_LINK)
......
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