Commit 16c71bab authored by 聖園ミカ's avatar 聖園ミカ 🐟

54188

parent 3ed2e4dc
Pipeline #30921 failed with stages
in 18 minutes and 24 seconds
No preview for this file type
......@@ -150,15 +150,15 @@ function c12877020.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST+REASON_RELEASE)
end
function c12877020.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return #g>=2 end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,2,0,0)
end
function c12877020.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if g:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD,2,2,nil)
if #dg==2 then
Duel.HintSelection(dg)
local dg=g:Select(tp,2,2,nil)
Duel.Destroy(dg,REASON_EFFECT)
end
end
......
......@@ -7,7 +7,6 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m)
e1:SetCost(cm.cost)
......@@ -55,8 +54,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.spfilter(c,e,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
and c:IsLevelAbove(10) and c:IsRace(RACE_WYRM) and c:IsAttribute(ATTRIBUTE_DARK)
return c:IsFaceupEx() and c:IsLevelAbove(10) and c:IsRace(RACE_WYRM) and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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