Skip to content

RushDuel.IsAttacking ​

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

Signature ​

lua
RushDuel.IsAttacking(any effect) -> 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 ​

  • effect 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:56

lua
function RushDuel.IsAttacking(effect)
    local player = Duel.GetTurnPlayer()
    return Duel.GetFlagEffect(player, FLAG_ATTACK_ANNOUNCED) ~= 0
end

Used By ​

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

  • Detected in 7 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsAttacking.
CardIDScriptDetected Calls
Lostream Polka120309040Rush/Scripts/c120309040.lua1
Lovely Blessing120260051Rush/Scripts/c120260051.lua1
Evasive Chaos Ninsect Labyrinth Spider120277013Rush/Scripts/c120277013.lua1
Fiery Arms - Fretberge120228051Rush/Scripts/c120228051.lua1
Command Knight120109065Rush/Scripts/c120109065.lua1
Raging Waves120253055Rush/Scripts/c120253055.lua1
Magician's Valkyria120229002Rush/Scripts/c120229002.lua1

Script Examples ​

Lostream Polka (120309040) ​

Source: Rush/Scripts/c120309040.lua

lua
function cm.atkcon(e)
	local ec=e:GetHandler():GetEquipTarget()
	return aux.IsUnionState(e) and not RD.IsAttacking(e)
		and ec and ec:GetControler()==e:GetHandlerPlayer()
end

Lovely Blessing (120260051) ​

Source: Rush/Scripts/c120260051.lua

lua
function cm.atkcon(e)
	local ec=e:GetHandler():GetEquipTarget()
	return not RD.IsAttacking(e) and ec and ec:GetControler()==e:GetHandlerPlayer()
end
function cm.atktg(e,c)

Evasive Chaos Ninsect Labyrinth Spider (120277013) ​

Source: Rush/Scripts/c120277013.lua

lua
function cm.condition(e)
	local tp=e:GetHandlerPlayer()
	return not RD.IsAttacking(e)
		and Duel.IsExistingMatchingCard(cm.confilter1,tp,LOCATION_MZONE,0,1,nil)
		and not Duel.IsExistingMatchingCard(cm.confilter2,tp,LOCATION_MZONE,0,1,nil)