Commit 9b92f88d authored by mercury233's avatar mercury233 Committed by GitHub

Revert "fix 青い涙の天使 (#2532)" (#2629)

This reverts commit 181f7826.
parent dbc202f0
--青い涙の天使 --青い涙の天使
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)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
...@@ -22,7 +20,6 @@ function s.initial_effect(c) ...@@ -22,7 +20,6 @@ function s.initial_effect(c)
e2:SetCode(EVENT_DAMAGE) e2:SetCode(EVENT_DAMAGE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,id) e2:SetCountLimit(1,id)
e2:SetLabelObject(e0)
e2:SetCondition(s.setcon) e2:SetCondition(s.setcon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(s.settg) e2:SetTarget(s.settg)
...@@ -70,8 +67,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,8 +67,7 @@ function s.activate(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)
local se=e:GetLabelObject():GetLabelObject() return bit.band(r,REASON_EFFECT)~=0
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:GetType()==TYPE_TRAP and c:IsSSetable() return c:GetType()==TYPE_TRAP 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