Commit b2d980c9 authored by root's avatar root

Refresh on 2024-07-07 09:05:37

parent 8ff42bfb
...@@ -47,9 +47,9 @@ function s.cfilter2(c) ...@@ -47,9 +47,9 @@ function s.cfilter2(c)
return c:IsType(TYPE_RITUAL+TYPE_LINK+TYPE_XYZ) and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_RITUAL+TYPE_LINK+TYPE_XYZ) and c:IsAbleToRemoveAsCost()
end end
function s.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(s.cfilter2,tp,LOCATION_GRAVE,0,5,nil) end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(s.cfilter2,tp,LOCATION_GRAVE,LOCATION_GRAVE,6,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.cfilter2,tp,LOCATION_GRAVE,0,5,5,nil) local g=Duel.SelectMatchingCard(tp,s.cfilter2,tp,LOCATION_GRAVE,LOCATION_GRAVE,6,6,nil)
g:AddCard(e:GetHandler()) g:AddCard(e:GetHandler())
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
......
...@@ -12,9 +12,7 @@ function c114514397.initial_effect(c) ...@@ -12,9 +12,7 @@ function c114514397.initial_effect(c)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,114514397) e1:SetCountLimit(1,114514397)
e1:SetCondition(function(e) e1:SetCondition(c114514397.con)
local tp=e:GetHandlerPlayer()
return Duel.IsExistingMatchingCard(function(c) return c:IsFaceup() and c:IsType(TYPE_RITUAL) end,tp,LOCATION_MZONE,0,1,nil) end)
e1:SetTarget(c114514397.actg) e1:SetTarget(c114514397.actg)
e1:SetOperation(c114514397.acop) e1:SetOperation(c114514397.acop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -29,9 +27,12 @@ function c114514397.initial_effect(c) ...@@ -29,9 +27,12 @@ function c114514397.initial_effect(c)
e2:SetOperation(c114514397.desrepop) e2:SetOperation(c114514397.desrepop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c114514397.tarfil(c,e,tp) function c114514397.cfilter(c,tp)
return c:IsSummonLocation(LOCATION_EXTRA) and c:IsCanBeEffectTarget(e) and c:IsSummonPlayer(1-tp) and Duel.IsExistingMatchingCard(c114514397.tgfil,tp,LOCATION_EXTRA,LOCATION_EXTRA,1,nil,c) return c:IsSummonLocation(LOCATION_EXTRA) and c:IsFaceup() and c:IsSummonPlayer(tp) and Duel.IsExistingMatchingCard(c114514397.tgfil,tp,LOCATION_EXTRA,LOCATION_EXTRA,1,nil,c)
end end
function c114514397.con(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c114514397.cfilter,1,nil,1-tp)
end
function c114514397.tgfil(c,sc) function c114514397.tgfil(c,sc)
local flag=0 local flag=0
if sc:IsType(TYPE_FUSION) then flag=bit.bor(flag,TYPE_FUSION) end if sc:IsType(TYPE_FUSION) then flag=bit.bor(flag,TYPE_FUSION) end
......
...@@ -58,7 +58,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
...@@ -66,7 +66,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function s.splimit(e,c) function s.splimit(e,c)
return c:IsLocation(LOCATION_EXTRA) and not c:IsAttribute(ATTRIBUTE_DARK) return not c:IsAttribute(ATTRIBUTE_DARK) and c:IsLocation(LOCATION_EXTRA)
end end
function s.negcon(e,tp,eg,ep,ev,re,r,rp) function s.negcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
......
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