Commit 7fd128ba authored by CubeRuler's avatar CubeRuler

Update c33330177.lua

parent b817dc7a
Pipeline #22661 passed with stages
in 22 minutes and 28 seconds
--审判之剑 --审判之剑
local m=33330177 local m=33330177
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("c81000000.lua")
function cm.initial_effect(c) function cm.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -19,9 +18,14 @@ end ...@@ -19,9 +18,14 @@ end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function cm.cfilter2(c)
return c:IsAbleToRemove()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,0,LOCATION_MZONE,1,nil) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_HAND,0,1,nil) end
local g=Duel.GetMatchingGroup(cm.cfilter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(cm.cfilter,tp,0,LOCATION_MZONE,nil)
local g2=Duel.GetMatchingGroup(cm.cfilter2,tp,LOCATION_HAND,0,nil)
Group.Merge(g,g2)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end end
function cm.damfilter(c) function cm.damfilter(c)
......
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