Skip to content

RushDuel.AttachCannotAttack ​

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

Signature ​

lua
RushDuel.AttachCannotAttack(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:170

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

Used By ​

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

  • Detected in 9 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.AttachCannotAttack.
CardIDScriptDetected Calls
Invitation to a Delirious Dream120261066Rush/Scripts/c120261066.lua1
Instant Fusion120305053Rush/Scripts/c120305053.lua1
The Swordsman Who Doles Out Victory120290023Rush/Scripts/c120290023.lua1
Summoner Monk120307009Rush/Scripts/c120307009.lua1
Harpie Lady 3120247006Rush/Scripts/c120247006.lua1
Tribute Doll120214009Rush/Scripts/c120214009.lua1
Super Conductor Tyranno120274078Rush/Scripts/c120274078.lua1
Mind Control120280029Rush/Scripts/c120280029.lua1
Silent Doom120234004Rush/Scripts/c120234004.lua1

Script Examples ​

Invitation to a Delirious Dream (120261066) ​

Source: Rush/Scripts/c120261066.lua

lua
		local tc=g:GetFirst()
		if Duel.GetControl(tc,tp)~=0 then
			RD.AttachCannotAttack(e,tc,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD)
			RD.AttachCannotTrigger(e,tc,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD)
		end

Instant Fusion (120305053) ​

Source: Rush/Scripts/c120305053.lua

lua
		tc:SetMaterial(nil)
		if Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)~=0 then
			RD.AttachCannotAttack(e,tc,aux.Stringid(m,1),RESET_EVENT+RESETS_STANDARD)
			RD.AttachEndPhase(e,tc,tp,m,cm.tgop,aux.Stringid(m,2),true)
		end

The Swordsman Who Doles Out Victory (120290023) ​

Source: Rush/Scripts/c120290023.lua

lua
			RD.SendToHandAndExists(g,e,tp,REASON_EFFECT)
		end)
		RD.AttachCannotAttack(e,c,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
	end
end