Commit b9bcd0e2 authored by 未闻皂名's avatar 未闻皂名
parents 17a4eb10 e97116e4
...@@ -16,8 +16,9 @@ function cm.initial_effect(c) ...@@ -16,8 +16,9 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
--Destroy --Destroy
function cm.costfilter(c) function cm.costfilter(c,e,tp)
return c:IsFaceup() and c:IsCode(list[1]) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsCode(list[1]) and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,Group.FromCards(c,e:GetHandler()))
end end
cm.cost=RD.CostSendOnFieldToGrave(cm.costfilter,1,1,false) cm.cost=RD.CostSendOnFieldToGrave(cm.costfilter,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -16,8 +16,9 @@ function cm.initial_effect(c) ...@@ -16,8 +16,9 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
--Destroy --Destroy
function cm.costfilter(c) function cm.costfilter(c,e,tp)
return c:IsFaceup() and c:IsCode(list[1]) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsCode(list[1]) and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,Group.FromCards(c,e:GetHandler()))
end end
cm.cost=RD.CostSendOnFieldToGrave(cm.costfilter,1,1,false) cm.cost=RD.CostSendOnFieldToGrave(cm.costfilter,1,1,false)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -18,7 +18,7 @@ function cm.exfilter(c) ...@@ -18,7 +18,7 @@ function cm.exfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY) return c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY)
end end
function cm.desfilter(c) function cm.desfilter(c)
return c:IsFaceup() and c:IsLevelAbove(8) return c:IsFaceup() and c:IsLevelBelow(8)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>1 return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>1
......
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