Skip to content

RushDuel.AttachDirectAttack ​

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

Signature ​

lua
RushDuel.AttachDirectAttack(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:18

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

Used By ​

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

  • Detected in 21 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.AttachDirectAttack.
CardIDScriptDetected Calls
OuTerverSe Direct Driver120109056Rush/Scripts/c120109056.lua1
UMP Sky Forbia120306017Rush/Scripts/c120306017.lua1
Beginning Hiyashi the Sonic Noodle Ninja120300035Rush/Scripts/c120300035.lua1
Doushin Kaika the Shadow Flower Full Moon120228037Rush/Scripts/c120228037.lua1
Jinzo #7.7120257026Rush/Scripts/c120257026.lua1
Shining Shamaness120254082Rush/Scripts/c120254082.lua1
Gaia, Conqueror of Champions120249046Rush/Scripts/c120249046.lua1
Cat's Eye120150028Rush/Scripts/c120150028.lua1
Kimeruler the Dark Raider120140001Rush/Scripts/c120140001.lua1
Lovely Shoot120260048Rush/Scripts/c120260048.lua1
Elemental HERO Mariner120272047Rush/Scripts/c120272047.lua1
Shining Shaman120105009Rush/Scripts/c120105009.lua1
Hydro Cannon Big Bluefin120130032Rush/Scripts/c120130032.lua1
Hazy Strike Dragon Miragiastar F120205033Rush/Scripts/c120205033.lua1
Digracheon the Skysavior Radiaknight120301036Rush/Scripts/c120301036.lua1
Burst Bunny120264037Rush/Scripts/c120264037.lua1
Telepathic Agent120140030Rush/Scripts/c120140030.lua1
Alligator's Sword Dragon120206001Rush/Scripts/c120206001.lua1
Cyber Tutu120102004Rush/Scripts/c120102004.lua1
Kimeterasu the Divine Ruler120246040Rush/Scripts/c120246040.lua1
Direct Dive Dragon120109015Rush/Scripts/c120109015.lua1

Script Examples ​

OuTerverSe Direct Driver (120109056) ​

Source: Rush/Scripts/c120109056.lua

lua
				Duel.BreakEffect()
				g:ForEach(function(tc)
					RD.AttachDirectAttack(e,tc,aux.Stringid(m,3),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
				end)
				RD.CreateLimitAttackCountEffect(e,aux.Stringid(m,4),2,tp,1,0,RESET_PHASE+PHASE_END)

UMP Sky Forbia (120306017) ​

Source: Rush/Scripts/c120306017.lua

lua
	local c=e:GetHandler()
	if c:IsFaceup() and c:IsRelateToEffect(e) then
		RD.AttachDirectAttack(e,c,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
			local filter=RD.Filter(cm.filter,e,c)

Beginning Hiyashi the Sonic Noodle Ninja (120300035) ​

Source: Rush/Scripts/c120300035.lua

lua
	local c=e:GetHandler()
	if c:IsFaceup() and c:IsRelateToEffect(e) then
		RD.AttachDirectAttack(e,c,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		local posfilter=RD.Filter(cm.posfilter,e,tp)
		RD.CanSelectAndDoAction(aux.Stringid(m,2),HINTMSG_POSCHANGE,posfilter,tp,0,LOCATION_MZONE,1,1,nil,function(g)