Skip to content

Duel.IsPlayerCanSpecialSummonCount ​

Signature ​

lua
Duel.IsPlayerCanSpecialSummonCount(int player, int count) -> bool

Description ​

Checks whether player can perform count Special Summons under the current remaining Special Summon-count limits. The core checks EFFECT_LEFT_SPSUMMON_COUNT effects and the player's Special Summon counter.

Parameters ​

  • player int
  • count int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 50 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsPlayerCanSpecialSummonCount.
CardIDScriptDetected Calls
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua2
Barian's Chaos Draw97769122Scripts/c97769122.lua2
Bujinki Ahashima71095768Scripts/c71095768.lua1
The Phantom Knights' Rank-Up-Magic Requiem62104532Scripts/c62104532.lua1
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua1
Link into the VRAINS!28827503Scripts/c28827503.lua1
Purrely Sharely!?10780049Scripts/c10780049.lua1
Gunkan Sushipyard Seaside Supper Spot62200831Scripts/c62200831.lua1
Gagaga Girl - Cell Phone Subtraction48393693Scripts/c48393693.lua1
Gunkan Suship Shari Red63748694Scripts/c63748694.lua1
Daigusto Laplampilica76937326Scripts/c76937326.lua2
Performapal Odd-Eyes Synchron82224646Scripts/c82224646.lua1
Salamangreat Zebroid X44161893Scripts/c44161893.lua1
Chronomaly Esperanza Glyph50797682Scripts/c50797682.lua2
Numbers Last Hope4606229Scripts/c4606229.lua1
Mathmech Superfactorial87804365Scripts/c87804365.lua1
Cyber Jormungardr19715246Scripts/c19715246.lua1
Gazer Shark23536866Scripts/c23536866.lua1
Salamangreat Burning Shell28534130Scripts/c28534130.lua1
Shining Hope Road62829077Scripts/c62829077.lua1
Nibiru, the Primal Being27204311Scripts/c27204311.lua1
Crystron Rion66938505Scripts/c66938505.lua1
Magician Navigation7922915Scripts/c7922915.lua1
Crystron Tristaros99471856Scripts/c99471856.lua1
...and 26 more

Script Examples ​

Accel Synchro Stardust Dragon (30983281) ​

Source: Scripts/c30983281.lua

lua
	local b1=chkrel and Duel.IsExistingMatchingCard(c30983281.scfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,chkrel,nil)
	local b2=chknotrel and Duel.IsExistingMatchingCard(c30983281.scfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,nil,chknotrel)
	if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2)
		and (not ect1 or ect1>1) and (not ect2 or ect2>1) and (b1 or b2)
		and aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) end

Barian's Chaos Draw (97769122) ​

Source: Scripts/c97769122.lua

lua
	if ft>2 then ft=2 end
	if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
	if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2)
		and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
		and mg:CheckSubGroup(c97769122.fselect,1,ft,tp) end

Bujinki Ahashima (71095768) ​

Source: Scripts/c71095768.lua

lua
function c71095768.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
	local g=Duel.GetMatchingGroup(c71095768.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp)
	if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2)
		and not Duel.IsPlayerAffectedByEffect(tp,59822133)
		and Duel.GetLocationCount(tp,LOCATION_MZONE)>1