Commit 5a0d458b authored by Grajade's avatar Grajade

Update c19033.lua

parent 08308a9a
Pipeline #12233 passed with stage
in 1 minute and 4 seconds
......@@ -47,13 +47,10 @@ function c19033.stg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c19033.sop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
local def=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_HAND):GetFirst():GetDefense()
Duel.Recover(tp,def,REASON_EFFECT)
if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)>0 then
local def=Duel.GetOperatedGroup():GetFirst():GetDefense()
if def>0 then Duel.Recover(tp,def,REASON_EFFECT) end
end
end
function c19033.spr(e,tp,eg,ep,ev,re,r,rp)
......
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