Skip to content

Commit 7e0cf2b

Browse files
authored
Added a new helper function
aux.SelfRevealCost
1 parent 1629409 commit 7e0cf2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utility.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,12 @@ function Auxiliary.SelfDiscardToGraveCost(e,tp,eg,ep,ev,re,r,rp,chk)
14791479
if chk==0 then return c:IsDiscardable() and c:IsAbleToGraveAsCost() end
14801480
Duel.SendtoGrave(c,REASON_DISCARD|REASON_COST)
14811481
end
1482+
function Auxiliary.SelfRevealCost(e,tp,eg,ep,ev,re,r,rp,chk)
1483+
local c=e:GetHandler()
1484+
if chk==0 then return not c:IsPublic() end
1485+
Duel.ConfirmCards(1-tp,c)
1486+
Duel.ShuffleHand(tp)
1487+
end
14821488

14831489
function Auxiliary.PayLPCost(lp_value,pay_until)
14841490
if not pay_until then

0 commit comments

Comments
 (0)