Duel.GetCurrentPhase
Signature
lua
Duel.GetCurrentPhase() -> intDescription
Returns the current phase constant.
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4954
Guided Examples
Learn how to use this function in context:
- Chain Timing And Activation Windows
- Conditions, Costs, Activation Procedures, and Resolution
- First Scripts To Study
- Reset Flags And Effect Duration
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 829 indexed script(s).
- Search this function in the Script Explorer with
Duel.GetCurrentPhase.
Script Examples
Accel Synchro Stardust Dragon (30983281)
Source: Scripts/c30983281.lua
lua
end
function c30983281.sccon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2
endYomagna the Fire Phantom (17350692)
Source: Scripts/c17350692.lua
lua
local c=e:GetHandler()
local chkf=tp
if Duel.GetCurrentPhase()&(PHASE_DAMAGE+PHASE_DAMAGE_CAL)~=0 then return end
if not c:IsRelateToChain() or c:IsImmuneToEffect(e) then return end
local mg1=Duel.GetFusionMaterial(tp):Filter(s.filter1,nil,e)Mementotlan Fusion (66518509)
Source: Scripts/c66518509.lua
lua
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
end