Skip to content

Duel.IsPlayerCanSpecialSummon ​

Signature ​

lua
Duel.IsPlayerCanSpecialSummon(int player, [int sumtype], [int sumpos], [int target_player], [Card c]) -> bool

Description ​

With only player, checks whether player is allowed to perform a Special Summon and still has Special Summon count available. With the optional card-specific arguments, checks whether player can Special Summon c to target_player in sumpos with sumtype, using the current reason effect.

Parameters ​

  • player int
  • sumtype int optional
  • sumpos int optional
  • target_player int optional
  • c Card optional

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 28 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsPlayerCanSpecialSummon.
CardIDScriptDetected Calls
Yummy★Snatchy30581601Scripts/c30581601.lua1
Saiba the Soldier Swordsmith36608728Scripts/c36608728.lua1
Naturia Blessing34813545Scripts/c34813545.lua1
Masterking Archfiend35606858Scripts/c35606858.lua1
Stand Up Centur-Ion!41371602Scripts/c41371602.lua1
Super Koi Koi66171432Scripts/c66171432.lua1
Re-dyce-cle85704698Scripts/c85704698.lua1
Destined Duel48128081Scripts/c48128081.lua1
The Kaiju Files11163040Scripts/c11163040.lua1
Interrupted Kaiju Slumber99330325Scripts/c99330325.lua2
Super Quantal Alphan Spike72332074Scripts/c72332074.lua1
Etude of the Branded45675980Scripts/c45675980.lua1
Crystal Boon85766789Scripts/c85766789.lua1
Transforming Sphere66094973Scripts/c66094973.lua1
Dark Magical Curtain41350417Scripts/c41350417.lua1
Mimikuril74879881Scripts/c74879881.lua1
Gunkan Suship Ikura61027400Scripts/c61027400.lua1
Yang Zing Unleashed77783947Scripts/c77783947.lua1
Monster Gate43040603Scripts/c43040603.lua2
Last Turn28566710Scripts/c28566710.lua1
Lullaby of Obedience39238953Scripts/c39238953.lua1
Cynet Storm42461852Scripts/c42461852.lua2
Illusion Balloons62161698Scripts/c62161698.lua1
One or Eight74202664Scripts/c74202664.lua1
...and 4 more

Script Examples ​

Yummy★Snatchy (30581601) ​

Source: Scripts/c30581601.lua

lua
function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then
		if not Duel.IsPlayerCanSpecialSummon(tp) then return false end
		local mg=Duel.GetSynchroMaterial(tp)
		if mg:IsExists(Card.GetHandSynchro,1,nil) then

Saiba the Soldier Swordsmith (36608728) ​

Source: Scripts/c36608728.lua

lua
function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then
		if not Duel.IsPlayerCanSpecialSummon(tp) then return false end
		local mg=Duel.GetSynchroMaterial(tp)
		if mg:IsExists(Card.GetHandSynchro,1,nil) then

Naturia Blessing (34813545) ​

Source: Scripts/c34813545.lua

lua
function c34813545.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then
		if not Duel.IsPlayerCanSpecialSummon(tp) then return false end
		local mg=Duel.GetSynchroMaterial(tp)
		if mg:IsExists(Card.GetHandSynchro,1,nil) then