Skip to content

Duel.ShuffleHand ​

Signature ​

lua
Duel.ShuffleHand(int player) -> void

Description ​

Shuffles player's hand and resets shuffle-check state.

Parameters ​

  • player int

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:4917

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 521 indexed script(s).
  • Search this function in the Script Explorer with Duel.ShuffleHand.
CardIDScriptDetected Calls
Spellbook of the Grand Circle11911336Scripts/c11911336.lua1
Melffy Playtime Surprise58036097Scripts/c58036097.lua1
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua1
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
Meteoroa Drytron24166324Scripts/c24166324.lua1
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Aiwass, Divine Spirit of the Law84288367Scripts/c84288367.lua2
GMX 55th Experiment Report38984832Scripts/c38984832.lua1
Enneacraft - Archa.TAIL81237046Scripts/c81237046.lua1
Enneacraft - Atil.SPIA71801447Scripts/c71801447.lua1
Enneacraft - Aiza.LEON82359538Scripts/c82359538.lua1
Junoldo the Shadespirit Power Patron10266279Scripts/c10266279.lua1
Flower Cardian Peony with Butterfly57261568Scripts/c57261568.lua1
A Bao A Qu, the Lightless Shadow4731783Scripts/c4731783.lua1
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua1
Deep Sea Minstrel71978434Scripts/c71978434.lua2
Enneacraft - Atori.MAR54842941Scripts/c54842941.lua1
Lunalight Masquerade2344618Scripts/c2344618.lua1
Koa'ki Meiru Rooklord10060427Scripts/c10060427.lua1
Purrely25550531Scripts/c25550531.lua1
Enlilgirsu, the Orcust Mekk-Knight74820316Scripts/c74820316.lua1
Magellanica, the Deep Sea City26534688Scripts/c26534688.lua1
Flower Cardian Moonflowerviewing33541430Scripts/c33541430.lua1
R.B. Lambda Cannon81794107Scripts/c81794107.lua1
...and 497 more

Script Examples ​

Spellbook of the Grand Circle (11911336) ​

Source: Scripts/c11911336.lua

lua
			local dg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,2,2,nil)
			Duel.BreakEffect()
			Duel.ShuffleHand(tp)
			Duel.SendtoDeck(dg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
		end

Melffy Playtime Surprise (58036097) ​

Source: Scripts/c58036097.lua

lua
		end
		if res and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
			Duel.ShuffleHand(tp)
			local sg1=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
			local mg2=nil

Deftero Enneacraft - "alazoneIA" (92171126) ​

Source: Scripts/c92171126.lua

lua
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
	local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
	Duel.ShuffleHand(tp)
	if g:GetCount()>0 then
		local sc=g:GetFirst()