Commit 5c72efd7 authored by gggg's avatar gggg

changes from sayaka

parent 048be397
Pipeline #26042 passed with stages
in 32 minutes and 28 seconds
......@@ -20,7 +20,10 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(cm.cos1)
e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end)
e2:SetTarget(cm.tg2)
e2:SetOperation(cm.op2)
c:RegisterEffect(e2)
......
......@@ -28,9 +28,7 @@ end
local function getDestroyGroup(e)
local c=e:GetHandler()
local cg=c:GetColumnGroup()
cg:RemoveCard(c)
return cg
return c:GetColumnGroup()-c
end
......
......@@ -5,6 +5,16 @@ Duel.LoadScript("c18019021.lua")
function cm.initial_effect(c)
aux.AddCodeList(c,18019001)
aux.EnableChangeCode(c,18019001,LOCATION_MZONE+LOCATION_GRAVE)
c:EnableReviveLimit()
local e9=Effect.CreateEffect(c)
e9:SetType(EFFECT_TYPE_SINGLE)
e9:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e9:SetCode(EFFECT_SPSUMMON_CONDITION)
e9:SetValue(function(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_RITUAL)==0 or Duel.GetMatchingGroup(function(c) return c:IsType(TYPE_SPELL) and c:IsType(TYPE_RITUAL) end,tp,LOCATION_GRAVE,0,nil):GetClassCount(Card.GetCode)>=11
end)
c:RegisterEffect(e9)
local e6=Effect.CreateEffect(c)
e6:SetCategory(CATEGORY_TODECK+CATEGORY_DAMAGE)
......
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