Commit f8988d48 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12055000.lua

parent 43ed7bcf
......@@ -30,7 +30,7 @@ function unleashed.costop(e,tp,eg,ep,ev,re,r,rp)
if c.unleashed_check(e,tp) and Duel.IsExistingMatchingCard(Card.IsAbleToDeckAsCost,tp,LOCATION_HAND,0,1,c) and ( Duel.GetFlagEffect(tp,12055023)~=0 or Duel.SelectYesNo(tp,aux.Stringid(m,0)) ) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local ct=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckAsCost,tp,LOCATION_HAND,0,1,1,c)
if ct:GetCount()>0 then
if ct and ct:GetCount()>0 then
Duel.SendtoDeck(ct,nil,2,REASON_COST)
Duel.ShuffleDeck(tp)
Duel.RegisterFlagEffect(tp,12055011,RESET_PHASE+PHASE_END,0,1)
......@@ -112,4 +112,4 @@ end
function unleashed_Info(e,tp,eg,ep,ev,re,r,rp,g)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_GRAVE)
end
\ No newline at end of file
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