Commit a9cc6423 authored by mercury233's avatar mercury233

fix

parent 0cadea3b
......@@ -8,8 +8,11 @@ function c54094821.initial_effect(c)
e1:SetOperation(c54094821.activate)
c:RegisterEffect(e1)
end
function c54094821.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL
end
function c54094821.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and eg:GetFirst():GetSummonType()==SUMMON_TYPE_RITUAL
return eg:IsExists(c54094821.cfilter,1,nil)
end
function c54094821.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -19,11 +19,14 @@ function c88301833.initial_effect(c)
e2:SetOperation(c88301833.thop)
c:RegisterEffect(e2)
end
function c88301833.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL
end
function c88301833.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and eg:GetFirst():GetSummonType()==SUMMON_TYPE_RITUAL
return eg:IsExists(c88301833.cfilter,1,nil)
end
function c88301833.thfilter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsAbleToHand() and c:IsCanBeEffectTarget(e)
return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_RELEASE) and c:IsControler(tp) and c:IsAbleToHand() and c:IsCanBeEffectTarget(e)
end
function c88301833.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tc=eg:GetFirst()
......
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