Skip to content

Duel.IsAbleToEnterBP ​

Signature ​

lua
Duel.IsAbleToEnterBP() -> bool

Description ​

Checks whether the current turn player can still enter the Battle Phase. The core requires the duel to allow first-turn attacks or not be turn 1, the current phase to be before PHASE_BATTLE_START, and the turn player not to be affected by EFFECT_CANNOT_BP.

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 75 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsAbleToEnterBP.
CardIDScriptDetected Calls
Pendulum Evolution55795155Scripts/c55795155.lua1
Performage Trapeze Magician17016362Scripts/c17016362.lua1
Vernusylph of the Thawing Mountains9238125Scripts/c9238125.lua1
Joyous Melffys53054164Scripts/c53054164.lua1
H.E.R.O. Flash!18482473Scripts/c18482473.lua2
Mega Fortress Whale96546575Scripts/c96546575.lua1
Update Jammer88093706Scripts/c88093706.lua1
Ukiyoe-P.U.N.K. Rising Carp18313046Scripts/c18313046.lua1
D/D Defense Soldier93317313Scripts/c93317313.lua1
Heavy Armored Train Ironwolf49121795Scripts/c49121795.lua1
Shooting Star Dragon24696097Scripts/c24696097.lua1
Inzektor Hopper52601736Scripts/c52601736.lua1
Raidraptor - Revolution Falcon81927732Scripts/c81927732.lua1
Eclipse Twins45852939Scripts/c45852939.lua1
Heroic Champion - Claivesolish97453744Scripts/c97453744.lua1
Diplexer Chimera78084378Scripts/c78084378.lua1
Double Iris Magician49684352Scripts/c49684352.lua1
Sunavalon Melias44478599Scripts/c44478599.lua1
Performage Fire Dancer7934362Scripts/c7934362.lua1
Duralume, Vaalmonican Heathen Hallow76821171Scripts/c76821171.lua1
Number 47: Nightmare Shark31320433Scripts/c31320433.lua1
SPYRAL GEAR - Last Resort37433748Scripts/c37433748.lua1
Go! - D/D/D Divine Zero King Rage40227329Scripts/c40227329.lua2
"Infernoble Arms - Hauteclere"64867422Scripts/c64867422.lua1
...and 51 more

Script Examples ​

Pendulum Evolution (55795155) ​

Source: Scripts/c55795155.lua

lua
end
function c55795155.atkcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsAbleToEnterBP()
end
function c55795155.atkfilter(c)

Performage Trapeze Magician (17016362) ​

Source: Scripts/c17016362.lua

lua
end
function c17016362.mtcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.GetCurrentPhase()==PHASE_MAIN1 and Duel.IsAbleToEnterBP()
end
function c17016362.mtcost(e,tp,eg,ep,ev,re,r,rp,chk)

Vernusylph of the Thawing Mountains (9238125) ​

Source: Scripts/c9238125.lua

lua
end
function c9238125.atkcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsAbleToEnterBP()
end
function c9238125.atkfilter(c)