Skip to content

RushDuel.IsCanAttachDirectAttack ​

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

Signature ​

lua
RushDuel.IsCanAttachDirectAttack(any card) -> 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 ​

  • card 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:239

lua
function RushDuel.IsCanAttachDirectAttack(card)
    return RushDuel.IsCanAttack(card) and not card:IsHasEffect(EFFECT_CANNOT_DIRECT_ATTACK) and not RushDuel.IsHasAttachEffect(card, EFFECT_DIRECT_ATTACK)
end

Used By ​

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

  • Detected in 17 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsCanAttachDirectAttack.
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
Kimeruler the Dark Raider120140001Rush/Scripts/c120140001.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
Telepathic Agent120140030Rush/Scripts/c120140030.lua1
Alligator's Sword Dragon120206001Rush/Scripts/c120206001.lua1
Cyber Tutu120102004Rush/Scripts/c120102004.lua1
Kimeterasu the Divine Ruler120246040Rush/Scripts/c120246040.lua1

Script Examples ​

OuTerverSe Direct Driver (120109056) ​

Source: Rush/Scripts/c120109056.lua

lua
function cm.filter(c)
	return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsLevel(4) and c:IsRace(RACE_GALAXY)
		and RD.IsCanAttachDirectAttack(c)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)

UMP Sky Forbia (120306017) ​

Source: Rush/Scripts/c120306017.lua

lua
	local c=e:GetHandler()
	return Duel.IsAbleToEnterBP()
		and RD.IsCanAttachDirectAttack(c)
		and RD.IsSummonOrSpecialSummonMainPhase(c)
end

Beginning Hiyashi the Sonic Noodle Ninja (120300035) ​

Source: Rush/Scripts/c120300035.lua

lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsAbleToEnterBP() and RD.IsCanAttachDirectAttack(e:GetHandler())
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,3,3)