Skip to content

Auxiliary.tgsval ​

Signature ​

lua
Auxiliary.tgsval(Effect e, Effect re, int rp) -> bool

Description ​

Value helper for self-targeting protection; it returns true when the reason player is the handler's player.

Parameters ​

  • e Effect
  • re Effect
  • rp int

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:835

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 2 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.tgsval.
CardIDScriptDetected Calls
Magical Mid-Breaker Field71650854Scripts/c71650854.lua1
Defense Zone59687381Scripts/c59687381.lua1

Script Examples ​

Magical Mid-Breaker Field (71650854) ​

Source: Scripts/c71650854.lua

lua
	local e4=e2:Clone()
	e4:SetTargetRange(0,LOCATION_MZONE)
	e4:SetValue(aux.tgsval)
	c:RegisterEffect(e4)
	local e5=e4:Clone()

Defense Zone (59687381) ​

Source: Scripts/c59687381.lua

lua
	local e3=e1:Clone()
	e3:SetTargetRange(0,LOCATION_SZONE)
	e3:SetValue(aux.tgsval)
	c:RegisterEffect(e3)
	local e4=e3:Clone()