Skip to content

RushDuel.AttachCannotDirectAttack ​

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

Signature ​

lua
RushDuel.AttachCannotDirectAttack(any e, any card, any desc, any reset, any forced) -> any

Description ​

Rush Duel helper declared in RDAttach.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.
  • card any: Type and behavior are not yet reviewed; see the source.
  • desc any: Type and behavior are not yet reviewed; see the source.
  • reset any: Type and behavior are not yet reviewed; see the source.
  • forced 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/RDAttach.lua:174

lua
function RushDuel.AttachCannotDirectAttack(e, card, desc, reset, forced)
    return RushDuel.CreateSingleEffect(e, desc, card, EFFECT_CANNOT_DIRECT_ATTACK, nil, reset, forced)
end

Used By ​

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

  • Detected in 13 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.AttachCannotDirectAttack.
CardIDScriptDetected Calls
Etraynze the Shadow Flower Ninja120170029Rush/Scripts/c120170029.lua1
Black Luster Soljersey - Envoy of the Drying120228017Rush/Scripts/c120228017.lua1
Dark Matter Requiem Omega120264040Rush/Scripts/c120264040.lua1
Beast Gear King Convoy Liogon120145031Rush/Scripts/c120145031.lua1
Ever-Grace Princess Mai120287014Rush/Scripts/c120287014.lua1
Blue-Fang Concurrent Burst Dragon120109046Rush/Scripts/c120109046.lua1
Transam Power Linac120260058Rush/Scripts/c120260058.lua1
Shock Dragon120130021Rush/Scripts/c120130021.lua1
Supreme Skystream Magnum Overlord [R]120151003Rush/Scripts/c120151003.lua1
Dankus, the Knight of Skysavior120235025Rush/Scripts/c120235025.lua1
Reprinter120199049Rush/Scripts/c120199049.lua1
Music Princess's Breath120155045Rush/Scripts/c120155045.lua1
Dual Coratlus120225008Rush/Scripts/c120225008.lua1

Script Examples ​

Etraynze the Shadow Flower Ninja (120170029) ​

Source: Rush/Scripts/c120170029.lua

lua
			RD.AttachEndPhase(e,tc,tp,m,cm.tdop,aux.Stringid(m,1))
			if c:IsFaceup() and c:IsRelateToEffect(e) then
				RD.AttachCannotDirectAttack(e,c,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
			end
		end

Black Luster Soljersey - Envoy of the Drying (120228017) ​

Source: Rush/Scripts/c120228017.lua

lua
		local c=e:GetHandler()
		if c:IsFaceup() and c:IsRelateToEffect(e) then
			RD.AttachCannotDirectAttack(e,c,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		end
	end)

Dark Matter Requiem Omega (120264040) ​

Source: Rush/Scripts/c120264040.lua

lua
	if c:IsFaceup() and c:IsRelateToEffect(e) then
		RD.AttachAtkDef(e,c,1300,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		RD.AttachCannotDirectAttack(e,c,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
	end
end