Skip to content

RushDuel.IsCanAttachBattleIndes ​

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

Signature ​

lua
RushDuel.IsCanAttachBattleIndes(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:306

lua
function RushDuel.IsCanAttachBattleIndes(card, value)
    local values = RushDuel.GetEffectValues(card, EFFECT_INDESTRUCTABLE_BATTLE)
    for _, val in ipairs(values) do
        if val == 1 then
            return false
        end
    end
    return true
end

Used By ​

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

  • Detected in 8 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsCanAttachBattleIndes.
CardIDScriptDetected Calls
Fusionic Defense120257064Rush/Scripts/c120257064.lua1
Skysavior Defense120301054Rush/Scripts/c120301054.lua1
Supreme Dog Ropero120239022Rush/Scripts/c120239022.lua1
Destined Doom of the Defiant Souls120298016Rush/Scripts/c120298016.lua1
Magic Fire Guard120217023Rush/Scripts/c120217023.lua1
Rolled Sticky Save120151046Rush/Scripts/c120151046.lua1
Transam Lightning120235056Rush/Scripts/c120235056.lua1
Spectral Swords of the Everloyal Guard120196047Rush/Scripts/c120196047.lua1

Script Examples ​

Fusionic Defense (120257064) ​

Source: Rush/Scripts/c120257064.lua

lua
end
function cm.filter(c,tp)
	return c:IsFaceup() and (RD.IsCanAttachBattleIndes(c,1) or RD.IsCanAttachEffectIndes(c,tp,cm.indval))
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)

Skysavior Defense (120301054) ​

Source: Rush/Scripts/c120301054.lua

lua
function cm.filter(c)
	return c:IsPosition(POS_FACEUP_ATTACK) and (c:IsRace(RACE_CELESTIALWARRIOR)
		or c:IsRace(RACE_WARRIOR)) and RD.IsCanAttachBattleIndes(c,1)
end
function cm.setfilter(c)

Supreme Dog Ropero (120239022) ​

Source: Rush/Scripts/c120239022.lua

lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
	return RD.IsCanAttachBattleIndes(e:GetHandler(),1)
end
cm.cost1=RD.CostPayLP(500)