Skip to content

RushDuel.AttachBattleIndes ​

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

Signature ​

lua
RushDuel.AttachBattleIndes(any e, any card, any value, 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.
  • value 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:75

lua
function RushDuel.AttachBattleIndes(e, card, value, desc, reset, forced)
    return RushDuel.CreateSingleEffect(e, desc, card, EFFECT_INDESTRUCTABLE_BATTLE, value, reset, forced)
end

Used By ​

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

  • Detected in 27 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.AttachBattleIndes.
CardIDScriptDetected Calls
Valkyrian Guard120231066Rush/Scripts/c120231066.lua1
Star Protector Recapture120306063Rush/Scripts/c120306063.lua1
Fusionic Defense120257064Rush/Scripts/c120257064.lua1
Skysavior Defense120301054Rush/Scripts/c120301054.lua1
Abysskite Ultimail120239048Rush/Scripts/c120239048.lua1
Abysskite Kaleido-Dress120290061Rush/Scripts/c120290061.lua1
Looter Force120228064Rush/Scripts/c120228064.lua1
Transam Variable Linac120245002Rush/Scripts/c120245002.lua1
Supreme Dog Ropero120239022Rush/Scripts/c120239022.lua1
Destined Doom of the Defiant Souls120298016Rush/Scripts/c120298016.lua1
Flower Fan Clematis120254072Rush/Scripts/c120254072.lua1
Dark Matter Enigmight Geodiver120264041Rush/Scripts/c120264041.lua1
Jointech Great Wall120235057Rush/Scripts/c120235057.lua1
Featuring Omega120217049Rush/Scripts/c120217049.lua1
Solid Strike Dragon Metagiastar F120217004Rush/Scripts/c120217004.lua1
Steel Strike Dragon Metagias120183017Rush/Scripts/c120183017.lua1
Jointech Ignition120249058Rush/Scripts/c120249058.lua1
Rocket Warrior120307023Rush/Scripts/c120307023.lua1
Magic Fire Guard120217023Rush/Scripts/c120217023.lua1
Rolled Sticky Save120151046Rush/Scripts/c120151046.lua1
Transam Lightning120235056Rush/Scripts/c120235056.lua1
Ninjitsu Art of Ultimate Transformation120306056Rush/Scripts/c120306056.lua1
Salary Slash120183062Rush/Scripts/c120183062.lua2
LED Pigeon120259003Rush/Scripts/c120259003.lua1
...and 3 more

Script Examples ​

Valkyrian Guard (120231066) ​

Source: Rush/Scripts/c120231066.lua

lua
				og:ForEach(function(tc)
					if tc:IsPosition(POS_FACEUP_DEFENSE) then
						local buff=RD.AttachBattleIndes(e,tc,1,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
						buff:SetCondition(cm.buffcon)
					end

Star Protector Recapture (120306063) ​

Source: Rush/Scripts/c120306063.lua

lua
			and RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP)~=0 then
			local tc=Duel.GetOperatedGroup():GetFirst()
			RD.AttachBattleIndes(e,tc,1,aux.Stringid(m,2),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		end
	end)

Fusionic Defense (120257064) ​

Source: Rush/Scripts/c120257064.lua

lua
			Duel.BreakEffect()
			local tc=g:GetFirst()
			RD.AttachBattleIndes(e,tc,1,aux.Stringid(m,3),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
			RD.AttachEffectIndes(e,tc,cm.indval,aux.Stringid(m,4),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		end)