Skip to content

Duel.IsTurnPlayer ​

Signature ​

lua
Duel.IsTurnPlayer(int playerid) -> bool

Description ​

Returns whether playerid is the current turn player.

Parameters ​

  • playerid int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 9 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsTurnPlayer.
CardIDScriptDetected Calls
D/D Extra Surveyor74387963Scripts/c74387963.lua1
Trirealm Rift Territory - Valvols33700664Scripts/c33700664.lua1
Volcanic Doomfire32543380Scripts/c32543380.lua1
Thunderforce Attack42469671Scripts/c42469671.lua1
Hieratic Seal From the Ashes53670497Scripts/c53670497.lua2
Mask of Dispel20765952Scripts/c20765952.lua1
White Aura Bihamut89907227Scripts/c89907227.lua1
Evil HERO Malicious Fiend86676862Scripts/c86676862.lua1
Ultimate Tyranno15894048Scripts/c15894048.lua1

Script Examples ​

D/D Extra Surveyor (74387963) ​

Source: Scripts/c74387963.lua

lua
function s.dacon(e,tp,eg,ep,ev,re,r,rp)
	return eg:IsExists(s.sfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
		and aux.bpcon(e,tp,eg,ep,ev,re,r,rp) and Duel.IsTurnPlayer(tp)
end
function s.dafilter(c)

Trirealm Rift Territory - Valvols (33700664) ​

Source: Scripts/c33700664.lua

lua
	return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
		and Duel.GetMatchingGroupCount(aux.TRUE,e:GetHandlerPlayer(),LOCATION_DECK,0,nil)==0
		and Duel.IsTurnPlayer(e:GetHandlerPlayer())
end

Volcanic Doomfire (32543380) ​

Source: Scripts/c32543380.lua

lua
end
function c32543380.bpcon(e)
	return Duel.IsTurnPlayer(1-e:GetHandlerPlayer()) and Duel.IsBattlePhase()
end
function c32543380.atklimit(e,c)