Duel.GetReleaseGroup
Signature
lua
Duel.GetReleaseGroup(int player, [bool use_hand], [int reason]) -> GroupDescription
Returns the cards player can Tribute/Release for effect purposes. If use_hand is true, valid cards in the hand are included.
Parameters
playerintuse_handbooloptional - default: falsereasonintoptional - default: REASON_COST
Returns
Group
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4974
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 151 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetReleaseGroup.
Script Examples
Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
end
function s.getrg(tp,sc)
local rg=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON)
local mrg=rg:Filter(Card.IsHasEffect,nil,EFFECT_EXTRA_RELEASE)
if mrg:GetCount()>0 thenSurprise Fusion (35167375)
Source: Scripts/c35167375.lua
lua
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp,false,REASON_EFFECT)
if chk==0 then return rg:IsExists(s.cfilter,1,nil,tp,true) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,0,0)Ursarctic Polari (27693363)
Source: Scripts/c27693363.lua
lua
end
function c27693363.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g1=Duel.GetReleaseGroup(tp):Filter(c27693363.rfilter,nil,tp)
local g2=Duel.GetMatchingGroup(c27693363.excostfilter,tp,LOCATION_GRAVE,0,nil,tp)
g1:Merge(g2)