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

fix

parent 5057d764
...@@ -35,6 +35,7 @@ function c53860621.initial_effect(c) ...@@ -35,6 +35,7 @@ function c53860621.initial_effect(c)
e5:SetCode(EVENT_BATTLE_DESTROYING) e5:SetCode(EVENT_BATTLE_DESTROYING)
e5:SetRange(LOCATION_SZONE) e5:SetRange(LOCATION_SZONE)
e5:SetCountLimit(1,53860621) e5:SetCountLimit(1,53860621)
e5:SetCondition(c53860621.descon)
e5:SetTarget(c53860621.destg) e5:SetTarget(c53860621.destg)
e5:SetOperation(c53860621.desop) e5:SetOperation(c53860621.desop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
...@@ -70,6 +71,10 @@ function c53860621.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,6 +71,10 @@ function c53860621.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc) Duel.Equip(tp,e:GetHandler(),tc)
end end
end end
function c53860621.descon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget()
return ec and eg:IsContains(ec)
end
function c53860621.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c53860621.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 end
Duel.SetOperationInfo(0,CATEGORY_HANDES,0,0,1-tp,1) Duel.SetOperationInfo(0,CATEGORY_HANDES,0,0,1-tp,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