Commit 9a355b65 authored by mercury233's avatar mercury233

fix

parent 1b9b9c10
...@@ -10,6 +10,7 @@ function c101011034.initial_effect(c) ...@@ -10,6 +10,7 @@ function c101011034.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(c101011034.thcon)
e1:SetTarget(c101011034.thtg) e1:SetTarget(c101011034.thtg)
e1:SetOperation(c101011034.thop) e1:SetOperation(c101011034.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -36,6 +37,9 @@ function c101011034.initial_effect(c) ...@@ -36,6 +37,9 @@ function c101011034.initial_effect(c)
e3:SetOperation(c101011034.atkop) e3:SetOperation(c101011034.atkop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c101011034.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end
function c101011034.thfilter(c) function c101011034.thfilter(c)
return c:IsFaceup() and c:IsAttackBelow(2300) and c:IsAbleToHand() return c:IsFaceup() and c:IsAttackBelow(2300) and c:IsAbleToHand()
end end
......
...@@ -26,7 +26,7 @@ function c101011054.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c101011054.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg2=nil local mg2=nil
if Duel.IsExistingMatchingCard(c101011054.cfilter,tp,LOCATION_MZONE,0,1,nil) then if Duel.IsExistingMatchingCard(c101011054.cfilter,tp,LOCATION_MZONE,0,1,nil) then
e:SetLabel(1) e:SetLabel(1)
exg=Duel.GetMatchingGroup(aux.RitualExtraFilter,tp,LOCATION_GRAVE,0,nil,c101011054.mfilter) mg2=Duel.GetMatchingGroup(aux.RitualExtraFilter,tp,LOCATION_GRAVE,0,nil,c101011054.mfilter)
end end
return Duel.IsExistingMatchingCard(aux.RitualUltimateFilter,tp,LOCATION_HAND,0,1,nil,c101011054.filter,e,tp,mg,mg2,Card.GetLevel,"Greater") return Duel.IsExistingMatchingCard(aux.RitualUltimateFilter,tp,LOCATION_HAND,0,1,nil,c101011054.filter,e,tp,mg,mg2,Card.GetLevel,"Greater")
end 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