Skip to content

RushDuel.IsCanAttachExtraAttack ​

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

Signature ​

lua
RushDuel.IsCanAttachExtraAttack(any card, any value) -> 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.
  • value 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:247

lua
function RushDuel.IsCanAttachExtraAttack(card, value)
    if not RushDuel.IsCanAttack(card) then
        return false
    end
    local values = RushDuel.GetEffectValues(card, EFFECT_EXTRA_ATTACK)
    for _, val in ipairs(values) do
        if val >= value then
            return false
        end
    end
    return true
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.IsCanAttachExtraAttack.
CardIDScriptDetected Calls
The Trinity Dragiastar120109031Rush/Scripts/c120109031.lua1
The Dragiastar120235035Rush/Scripts/c120235035.lua1
Gias x Gias120246032Rush/Scripts/c120246032.lua1
Lightning Volteagle120246001Rush/Scripts/c120246001.lua1
Purple-Eyes Star Cat120235014Rush/Scripts/c120235014.lua1
Cross Lostream Melutine120309036Rush/Scripts/c120309036.lua1
Madrhea Aquila120244030Rush/Scripts/c120244030.lua1
Double Chill Dragons120235034Rush/Scripts/c120235034.lua1
Steel Steed Martin Vainari120238016Rush/Scripts/c120238016.lua1
Ghost Vicious120228033Rush/Scripts/c120228033.lua1
Hyperstrike Dragon Dragiastar F120196022Rush/Scripts/c120196022.lua1
Multistrike Dragon Dragias120110001Rush/Scripts/c120110001.lua1
Vice Jacker120170025Rush/Scripts/c120170025.lua1
Digracheon the Skysavior Radiaknight120301036Rush/Scripts/c120301036.lua1
Abad the Negahell Emperor120290100Rush/Scripts/c120290100.lua1
Hydra Viper120109047Rush/Scripts/c120109047.lua1
Twin Edge Dragon120110006Rush/Scripts/c120110006.lua1

Script Examples ​

The Trinity Dragiastar (120109031) ​

Source: Rush/Scripts/c120109031.lua

lua
--Attack Thrice
function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsAbleToEnterBP() and RD.IsCanAttachExtraAttack(e:GetHandler(),2) end
	Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end

The Dragiastar (120235035) ​

Source: Rush/Scripts/c120235035.lua

lua
--Attack Twice
function cm.filter1(c)
	return c:IsPosition(POS_FACEUP_ATTACK) and RD.IsCanAttachExtraAttack(c,1)
end
function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk)

Gias x Gias (120246032) ​

Source: Rush/Scripts/c120246032.lua

lua
end
function cm.exfilter(c,tc)
	return c:IsFaceup() and c:IsLevel(tc:GetLevel()) and c:IsRace(tc:GetRace()) and RD.IsCanAttachExtraAttack(c,1)
end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1)