Skip to content

RushDuel.ConditionFlipMainPhase ​

Alias: RD.ConditionFlipMainPhase. Requires the matching Rush Duel Lua bootstrap.

Signature ​

lua
RushDuel.ConditionFlipMainPhase(any e) -> any

Description ​

Rush Duel helper declared in RDCondition.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
通用条件: 这张卡反转的自己主要阶段

Parameters ​

  • e any: Type and behavior are not yet reviewed; see the source.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDCondition.lua:440

lua
function RushDuel.ConditionFlipMainPhase(e)
	return RushDuel.IsFlipMainPhase(e:GetHandler())
end

Used By ​

Generated from the local Rush/Scripts/ folder and rush_cards.cdb.

  • Detected in 3 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.ConditionFlipMainPhase.
CardIDScriptDetected Calls
Magician of Faith120307006Rush/Scripts/c120307006.lua1
Mask of Darkness120307007Rush/Scripts/c120307007.lua1
Penguin Soldier120307022Rush/Scripts/c120307022.lua1

Script Examples ​

Magician of Faith (120307006) ​

Source: Rush/Scripts/c120307006.lua

lua
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCondition(RD.ConditionFlipMainPhase)
	e1:SetTarget(cm.target)
	e1:SetOperation(cm.operation)

Mask of Darkness (120307007) ​

Source: Rush/Scripts/c120307007.lua

lua
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCondition(RD.ConditionFlipMainPhase)
	e1:SetTarget(cm.target)
	e1:SetOperation(cm.operation)

Penguin Soldier (120307022) ​

Source: Rush/Scripts/c120307022.lua

lua
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCondition(RD.ConditionFlipMainPhase)
	e1:SetTarget(cm.target)
	e1:SetOperation(cm.operation)