Skip to content

RushDuel.Damage ​

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

Signature ​

lua
RushDuel.Damage(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:44

lua
function RushDuel.Damage(player, damage)
    local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
    return Duel.Damage(player or p, damage or d, REASON_EFFECT)
end

Used By ​

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

  • Detected in 52 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.Damage.
CardIDScriptDetected Calls
Roaring Firestorm Volcalize Phoenix120249016Rush/Scripts/c120249016.lua2
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
Ancient Gear Hunting Hound120283048Rush/Scripts/c120283048.lua2
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
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
Royal Rebel's Grunge120254074Rush/Scripts/c120254074.lua2
...and 28 more

Script Examples ​

Roaring Firestorm Volcalize Phoenix (120249016) ​

Source: Rush/Scripts/c120249016.lua

lua
	if chk==0 then return true end
	Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
	RD.Damage(1-tp,1000)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)

Spiral Geyser (120199064) ​

Source: Rush/Scripts/c120199064.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	RD.Damage()
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateHintEffect(e,aux.Stringid(m,1),tp,1,0,RESET_PHASE+PHASE_END)

Pitch-Dark Eradicator Sorcerer (120309008) ​

Source: Rush/Scripts/c120309008.lua

lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	RD.Damage()
end