Commit 5a16c9d7 authored by wind2009's avatar wind2009 Committed by GitHub

Update 聖霊獣騎 レイラウタリ

parent 87197bb1
......@@ -7,11 +7,11 @@ function s.initial_effect(c)
--cannot release(uncompleted)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UNRELEASABLE_NONSUM)
e1:SetCode(EFFECT_CANNOT_RELEASE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetTargetRange(0xff,0xff)
e1:SetValue(s.limval)
e1:SetTargetRange(1,1)
e1:SetTarget(s.rellimit)
c:RegisterEffect(e1)
--tohand/extra & summon bonus
local e2=Effect.CreateEffect(c)
......@@ -37,8 +37,8 @@ function s.initial_effect(c)
e3:SetOperation(s.rmop)
c:RegisterEffect(e3)
end
function s.limval(e,c,tp,re)
return re and re:IsActivated() and c:IsReason(REASON_COST)
function s.rellimit(e,c,tp,r)
return r&REASON_COST~=0
end
function s.bfilter(c)
return c:IsSetCard(0xb5) and c:IsFaceup() and c:IsAbleToHand()
......@@ -92,4 +92,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
if tg:GetCount()>0 then
Duel.Remove(tg,POS_FACEUP,REASON_EFFECT)
end
end
\ No newline at end of file
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