Commit af0090e1 authored by oilloillo's avatar oilloillo

Update c999530.lua

parent 281ff302
...@@ -33,7 +33,7 @@ function M.filterEx(c, e, tp, g, code) ...@@ -33,7 +33,7 @@ function M.filterEx(c, e, tp, g, code)
return c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_FUSION, tp, false, false) and c:CheckFusionMaterial(g, nil, tp) return c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_FUSION, tp, false, false) and c:CheckFusionMaterial(g, nil, tp)
elseif c:IsLocation(LOCATION_HAND) and c:IsType(TYPE_RITUAL) and c:IsSetCard(0x999) then elseif c:IsLocation(LOCATION_HAND) and c:IsType(TYPE_RITUAL) and c:IsSetCard(0x999) then
return c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_RITUAL, tp, false, true) and M.RMatFilter(g:GetFirst()) return c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_RITUAL, tp, false, true) and M.RMatFilter(g:GetFirst())
and Duel.IsExistingMatchingCard(M.RMatFilter, tp, LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD, 0, 2, nil, code) and Duel.IsExistingMatchingCard(M.RMatFilter, tp, LOCATION_HAND+LOCATION_GRAVE+LOCATION_ONFIELD, 0, 2, g:GetFirst(), code)
end end
end end
...@@ -62,6 +62,7 @@ function M.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,6 +62,7 @@ function M.op(e,tp,eg,ep,ev,re,r,rp)
local mat2 = Duel.SelectMatchingCard(tp, M.filter3, tp, LOCATION_SZONE+LOCATION_DECK+LOCATION_GRAVE, 0, 1, 1, nil, e, tp, mat1, code) local mat2 = Duel.SelectMatchingCard(tp, M.filter3, tp, LOCATION_SZONE+LOCATION_DECK+LOCATION_GRAVE, 0, 1, 1, nil, e, tp, mat1, code)
if mat2:GetCount() > 0 and Duel.SpecialSummon(mat2, 0, tp, tp, false, false, POS_FACEUP) > 0 then if mat2:GetCount() > 0 and Duel.SpecialSummon(mat2, 0, tp, tp, false, false, POS_FACEUP) > 0 then
Duel.RaiseEvent(e:GetHandler(), EVENT_ADJUST, nil, 0, PLAYER_NONE, PLAYER_NONE, 0) Duel.RaiseEvent(e:GetHandler(), EVENT_ADJUST, nil, 0, PLAYER_NONE, PLAYER_NONE, 0)
Duel.BreakEffect()
mat2 = mat2:GetFirst() mat2 = mat2:GetFirst()
local loc = LOCATION_HAND local loc = LOCATION_HAND
......
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