Skip to content

RushDuel.TargetDamage ​

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

Signature ​

lua
RushDuel.TargetDamage(any player, any damage) -> any

Description ​

Rush Duel helper declared in RDTarget.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
对玩家效果: 伤害 - 对象

Parameters ​

  • player any: Type and behavior are not yet reviewed; see the source.
  • damage 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/RDTarget.lua:17

lua
function RushDuel.TargetDamage(player, damage)
    Duel.SetTargetPlayer(player)
    Duel.SetTargetParam(damage)
    Duel.SetOperationInfo(0, CATEGORY_DAMAGE, nil, 0, player, damage)
end

Used By ​

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

  • Detected in 49 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.TargetDamage.
CardIDScriptDetected Calls
Spiral Geyser120199064Rush/Scripts/c120199064.lua1
Pitch-Dark Eradicator Sorcerer120309008Rush/Scripts/c120309008.lua1
Supreme Railartillery Magnum Overlord [R]120239003Rush/Scripts/c120239003.lua1
CAN:D LIVE120199035Rush/Scripts/c120199035.lua1
Cannon Soljersey120228016Rush/Scripts/c120228016.lua1
Terrorphone Number120217087Rush/Scripts/c120217087.lua1
Breaking News!120199063Rush/Scripts/c120199063.lua1
Amusi Annoyance120249063Rush/Scripts/c120249063.lua1
Burst Ray Blaster120222022Rush/Scripts/c120222022.lua1
Dragonic Domination120261064Rush/Scripts/c120261064.lua1
Space Bud Exploit120260015Rush/Scripts/c120260015.lua1
Defrostrooper Mk-II120261039Rush/Scripts/c120261039.lua1
Climax Clash120208060Rush/Scripts/c120208060.lua1
Agent Mishap120257022Rush/Scripts/c120257022.lua1
Voidvelg Hecatoncheir120227007Rush/Scripts/c120227007.lua1
Endless Romance Blitz120205034Rush/Scripts/c120205034.lua1
Hiita the Fire Spiritualist120301011Rush/Scripts/c120301011.lua1
Accel Wonder Flare120186010Rush/Scripts/c120186010.lua1
Sigurstate Sol120191004Rush/Scripts/c120191004.lua1
Rolled Hot Arrow120151047Rush/Scripts/c120151047.lua1
Reporting from the Scene!120199062Rush/Scripts/c120199062.lua1
Extra Spice the Elite Noodle Ninja120145033Rush/Scripts/c120145033.lua1
Thunderbeetle Gift120150033Rush/Scripts/c120150033.lua1
Vulcan Ignite Hyperdrive120205045Rush/Scripts/c120205045.lua1
...and 25 more

Script Examples ​

Spiral Geyser (120199064) ​

Source: Rush/Scripts/c120199064.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return true end
	RD.TargetDamage(1-tp,400)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)

Pitch-Dark Eradicator Sorcerer (120309008) ​

Source: Rush/Scripts/c120309008.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return true end
	RD.TargetDamage(1-tp,500)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)

Supreme Railartillery Magnum Overlord [R] (120239003) ​

Source: Rush/Scripts/c120239003.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return true end
	RD.TargetDamage(1-tp,500)
	if RD.IsMaximumMode(e:GetHandler()) then
		Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())