Duel.GetFusionMaterial
Signature
lua
Duel.GetFusionMaterial(int player, [int location]) -> Group,GroupDescription
Returns two Groups for player: all currently usable Fusion Material candidates, then the base material pool from the requested locations. location defaults to LOCATION_HAND + LOCATION_MZONE. Extra Fusion Material effects in the Spell & Trap Zone or GY are added to the first returned Group, while the second Group contains only cards from location.
Parameters
playerint- Player whose Fusion Material pool is collected.locationintoptional - Location mask for the base pool; default: LOCATION_HAND + LOCATION_MZONE.
Returns
Group- All currently usable Fusion Material candidates, including extra Fusion Material effects.Group- Base material pool from the requested locations only.
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:5000
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 187 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetFusionMaterial.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
if chk==0 then
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp)
local mg2=Duel.GetMatchingGroup(s.filter0,tp,LOCATION_GRAVE,0,nil)
mg1:Merge(mg2)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
Duel.Release(c,REASON_EFFECT)
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(s.filter0,nil,e)
local mg2=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_EXTRA,0,nil,e)
mg1:Merge(mg2)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
if chk==0 then
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then