Skip to content

Duel.CheckPhaseActivity ​

Signature ​

lua
Duel.CheckPhaseActivity() -> bool

Description ​

Returns whether an action has been recorded for the current phase.

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 25 indexed script(s).
  • Search this function in the Script Explorer with Duel.CheckPhaseActivity.
CardIDScriptDetected Calls
Ghostrick Renovation61818176Scripts/c61818176.lua1
Favorite Hero11881272Scripts/c11881272.lua1
Numeron Wall42352091Scripts/c42352091.lua1
Rank-Up-Magic - The Seventh One57734012Scripts/c57734012.lua1
Daidara-Bocchi69133798Scripts/c69133798.lua1
Pot of Dichotomy98672567Scripts/c98672567.lua1
Piri Reis Map33907039Scripts/c33907039.lua1
Fish and Bids74271714Scripts/c74271714.lua1
Gordian Slicer66236707Scripts/c66236707.lua1
Pot of Extravagance49238328Scripts/c49238328.lua1
Metaverse89208725Scripts/c89208725.lua1
Steelswarm Scout90727556Scripts/c90727556.lua1
Abyss Actors' Dress Rehearsal6004133Scripts/c6004133.lua1
Summon Over48015771Scripts/c48015771.lua1
Pop-Up15248873Scripts/c15248873.lua1
Mimir of the Nordic Ascendant76348260Scripts/c76348260.lua1
Magical Mid-Breaker Field71650854Scripts/c71650854.lua1
Gravekeeper's Inscription59494222Scripts/c59494222.lua1
Bujin Regalia - The Mirror35183853Scripts/c35183853.lua1
Soundproofed42314669Scripts/c42314669.lua1
Cold Wave60682203Scripts/c60682203.lua1
Heat Wave45141013Scripts/c45141013.lua1
Amabie2139640Scripts/c2139640.lua1
Quiet Life31980955Scripts/c31980955.lua1
...and 1 more

Script Examples ​

Ghostrick Renovation (61818176) ​

Source: Scripts/c61818176.lua

lua
	if chkc then return false end
	if chk==0 then return tc and tc:IsFaceup() and tc:IsSetCard(0x8d) and tc:IsAbleToHand() and tc:IsCanBeEffectTarget(e) end
	if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
	Duel.SetTargetCard(tc)
	Duel.SetOperationInfo(0,CATEGORY_TOHAND,tc,1,0,0)

Favorite Hero (11881272) ​

Source: Scripts/c11881272.lua

lua
function c11881272.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(c11881272.actfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,tp) end
	if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
end
function c11881272.actop(e,tp,eg,ep,ev,re,r,rp)

Numeron Wall (42352091) ​

Source: Scripts/c42352091.lua

lua
function c42352091.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsExistingMatchingCard(c42352091.actfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,tp) end
	if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
end
function c42352091.actop(e,tp,eg,ep,ev,re,r,rp)