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)
return c:IsType(TYPE_RITUAL+TYPE_LINK+TYPE_XYZ) and c:IsAbleToRemoveAsCost()
end
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)
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())
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
......
......@@ -12,9 +12,7 @@ function c114514397.initial_effect(c)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,114514397)
e1:SetCondition(function(e)
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:SetCondition(c114514397.con)
e1:SetTarget(c114514397.actg)
e1:SetOperation(c114514397.acop)
c:RegisterEffect(e1)
......@@ -29,9 +27,12 @@ function c114514397.initial_effect(c)
e2:SetOperation(c114514397.desrepop)
c:RegisterEffect(e2)
end
function c114514397.tarfil(c,e,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)
end
function c114514397.cfilter(c,tp)
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
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)
local flag=0
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)
end
local e1=Effect.CreateEffect(e:GetHandler())
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:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
......@@ -66,7 +66,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
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
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)
......
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