Commit bb24938a authored by wind2009's avatar wind2009

Merge branch 'patch-4' into 'master'

fix--青い涙の乙女

See merge request mycard/pre-release-database-cdb!27
parents 9c221ef2 6b396c5f
Pipeline #27140 passed with stages
in 1 minute
--青い涙の乙女 --青い涙の乙女
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--same effect send this card to grave and summon another card check
local e0=aux.AddThisCardInGraveAlreadyCheck(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
...@@ -19,6 +21,7 @@ function s.initial_effect(c) ...@@ -19,6 +21,7 @@ function s.initial_effect(c)
e2:SetCode(EVENT_DAMAGE) e2:SetCode(EVENT_DAMAGE)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetLabelObject(e0)
e2:SetCountLimit(1,id) e2:SetCountLimit(1,id)
e2:SetCondition(s.setcon) e2:SetCondition(s.setcon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
...@@ -61,7 +64,8 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +64,8 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.setcon(e,tp,eg,ep,ev,re,r,rp) function s.setcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 local se=e:GetLabelObject():GetLabelObject()
return bit.band(r,REASON_EFFECT)~=0 and (se==nil or e:GetHandler():GetReasonEffect()~=se)
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsFaceupEx() and c:GetType()==TYPE_SPELL and c:IsSSetable() return c:IsFaceupEx() and c:GetType()==TYPE_SPELL and c:IsSSetable()
......
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