Skip to content

Duel.IsMainPhase ​

Signature ​

lua
Duel.IsMainPhase() -> bool

Description ​

Returns whether the current phase is a Main Phase.

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 83 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsMainPhase.
CardIDScriptDetected Calls
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua1
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Mixousia the Confounder80843006Scripts/c80843006.lua1
Invoked Sorath43989315Scripts/c43989315.lua1
Magnet Bonding65514302Scripts/c65514302.lua1
Teleport Fusion36494597Scripts/c36494597.lua1
Artmage Masterwork -Succession-37517035Scripts/c37517035.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua1
Yummy★Snatchy30581601Scripts/c30581601.lua1
Mitsurugi Magatama76725398Scripts/c76725398.lua1
Ecclesia and the Dark Dragon78397661Scripts/c78397661.lua1
Dracotail Mululu7375867Scripts/c7375867.lua1
K9-X Forced Release53792930Scripts/c53792930.lua1
Clown Crew Soiree Operations70058649Scripts/c70058649.lua1
Saiba the Soldier Swordsmith36608728Scripts/c36608728.lua1
Artmage Power Patron23829452Scripts/c23829452.lua1
R.B. Lambda Blade17188206Scripts/c17188206.lua1
Gem-Knight Master Diamond Dispersion25342956Scripts/c25342956.lua1
Heroic Champion - Magnum Excalibur14301396Scripts/c14301396.lua1
Dracotail Faimena1498449Scripts/c1498449.lua1
Chevreuil, Hunting Scout of the Deep Forest13023431Scripts/c13023431.lua1
R.B. Shepherd's Crook80071619Scripts/c80071619.lua1
Galaxy-Eyes Photon Change Dragon54725177Scripts/c54725177.lua1
Borrelshroud Dragon66452432Scripts/c66452432.lua1
...and 59 more

Script Examples ​

Astrograph Sorcerer, the Starfrost Magician (48171151) ​

Source: Scripts/c48171151.lua

lua
end
function s.fspcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsMainPhase()
end
function s.filter0(c,e)

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
end
function s.drcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsMainPhase()
end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)

Mixousia the Confounder (80843006) ​

Source: Scripts/c80843006.lua

lua
end
function s.fspcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.GetTurnPlayer()~=tp and Duel.IsMainPhase()
end
function s.filter1(c,e)