Commit 9d2f4b73 authored by mercury233's avatar mercury233 Committed by GitHub

fix 右手に盾を左手に剣を

parent 2cfe5b5e
...@@ -9,17 +9,20 @@ function c52097679.initial_effect(c) ...@@ -9,17 +9,20 @@ function c52097679.initial_effect(c)
e1:SetOperation(c52097679.activate) e1:SetOperation(c52097679.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c52097679.filter(c)
return c:IsFaceup() and c:IsDefenseAbove(0)
end
function c52097679.target(e,tp,eg,ep,ev,re,r,rp,chk) function c52097679.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE) if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE)
and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end and Duel.IsExistingMatchingCard(c52097679.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c52097679.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
end end
function c52097679.filter(c,e) function c52097679.efilter(c,e)
return c:IsFaceup() and c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) return c52097679.filter(c) and c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e)
end end
function c52097679.activate(e,tp,eg,ep,ev,re,r,rp) function c52097679.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(c52097679.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e) local sg=Duel.GetMatchingGroup(c52097679.efilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e)
local c=e:GetHandler() local c=e:GetHandler()
local tc=sg:GetFirst() local tc=sg:GetFirst()
while tc do while tc do
......
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