Commit 815a1900 authored by DailyShana's avatar DailyShana
parent 28ed449e
...@@ -22,13 +22,17 @@ function c7565547.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -22,13 +22,17 @@ function c7565547.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c7565547.operation(e,tp,eg,ep,ev,re,r,rp) function c7565547.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then local dg=Group.CreateGroup()
local g=Duel.GetMatchingGroup(c7565547.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,nil) local g=Duel.GetMatchingGroup(c7565547.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,nil)
local ec=g:GetFirst() local ec=g:GetFirst()
while ec do while ec do
Duel.Equip(tp,ec,tc) if tc:IsFaceup() and tc:IsRelateToEffect(e) and ec:CheckEquipTarget(tc) then
ec=g:GetNext() Duel.Equip(tp,ec,tc,false,false)
else
dg:AddCard(ec)
end end
Duel.EquipComplete() ec=g:GetNext()
end end
Duel.EquipComplete()
Duel.Destroy(dg,REASON_EFFECT)
end end
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