Skip to content

RushDuel.RegisterUnionEffect ​

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

Signature ​

lua
RushDuel.RegisterUnionEffect(any card, any target, any condition, any cost, any operation, any limit) -> any

Description ​

Rush Duel helper declared in RDUnion.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.
  • target any: Type and behavior are not yet reviewed; see the source.
  • condition any: Type and behavior are not yet reviewed; see the source.
  • cost any: Type and behavior are not yet reviewed; see the source.
  • operation any: Type and behavior are not yet reviewed; see the source.
  • limit 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/RDUnion.lua:5

lua
function RushDuel.RegisterUnionEffect(card, target, condition, cost, operation, limit)
    local filter = function(c, e, re)
        return c:IsFaceup() and target(c, e, re)
    end
    -- Union
    local e1 = Effect.CreateEffect(card)
    e1:SetDescription(1060)
    e1:SetCategory(CATEGORY_EQUIP)
    e1:SetType(EFFECT_TYPE_IGNITION)
    e1:SetRange(LOCATION_MZONE)
    if condition then
        e1:SetCondition(condition)
    end
    if cost then
        e1:SetCost(cost)
    end
    e1:SetTarget(RushDuel.UnionTarget(filter))
    e1:SetOperation(RushDuel.UnionOperation(filter, operation, limit))
    card:RegisterEffect(e1)
    -- Equip Limit
    local e2 = Effect.CreateEffect(card)
    e2:SetType(EFFECT_TYPE_SINGLE)
    e2:SetCode(EFFECT_EQUIP_LIMIT)
    e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
    e2:SetValue(RushDuel.UnionFilter(filter))
    card:RegisterEffect(e2)
    local e3 = Effect.CreateEffect(card)
    e3:SetType(EFFECT_TYPE_SINGLE)
    e3:SetCode(EFFECT_UNION_TARGET)
    e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
    e3:SetValue(filter)
    card:RegisterEffect(e3)
    return e1
end

Used By ​

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

  • Detected in 19 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.RegisterUnionEffect.
CardIDScriptDetected Calls
Lostream Polka120309040Rush/Scripts/c120309040.lua1
Arthenée the Defender of Sacred Silence120306033Rush/Scripts/c120306033.lua1
Lostream Nepia120309038Rush/Scripts/c120309038.lua1
Lauan Mapper Ivy120306013Rush/Scripts/c120306013.lua1
Lostream Nemora120309037Rush/Scripts/c120309037.lua1
Lostream Nereides120109068Rush/Scripts/c120109068.lua1
Attrac Charm Sowaru120309055Rush/Scripts/c120309055.lua1
Lostream Myura120309041Rush/Scripts/c120309041.lua1
Powerful Machine Clockwork Walker120306030Rush/Scripts/c120306030.lua1
The Sacred Shield of Arthenée120306032Rush/Scripts/c120306032.lua1
SW - Asura Bat120305032Rush/Scripts/c120305032.lua1
Lauan Macho Dex120306014Rush/Scripts/c120306014.lua1
Z-Metal Tank120305058Rush/Scripts/c120305058.lua1
Y-Dragon Head120305057Rush/Scripts/c120305057.lua1
Koitsu120305043Rush/Scripts/c120305043.lua1
Doitsu120305044Rush/Scripts/c120305044.lua1
Attrac Charm Midi120309056Rush/Scripts/c120309056.lua1
The Sacred Spear of Arthenée120306031Rush/Scripts/c120306031.lua1
Leng Ling120308005Rush/Scripts/c120308005.lua1

Script Examples ​

Lostream Polka (120309040) ​

Source: Rush/Scripts/c120309040.lua

lua
function cm.initial_effect(c)
	--Union
	local e1=RD.RegisterUnionEffect(c,cm.filter,nil,nil,cm.operation)
	e1:SetCategory(e1:GetCategory()|CATEGORY_TOHAND|CATEGORY_GRAVE_ACTION)
	--Cannot Be Battle Target

Arthenée the Defender of Sacred Silence (120306033) ​

Source: Rush/Scripts/c120306033.lua

lua
	RD.AddHandConfirmSpecialSummonProcedure(c,aux.Stringid(m,0),cm.spconfilter)
	--Union
	RD.RegisterUnionEffect(c,aux.TRUE,nil,cm.cost)
	--Atk Up
	local e1=Effect.CreateEffect(c)

Lostream Nepia (120309038) ​

Source: Rush/Scripts/c120309038.lua

lua
	Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.ctfilter)
	--Union
	local e1=RD.RegisterUnionEffect(c,cm.filter,cm.condition,nil,cm.operation)
	e1:SetCategory(e1:GetCategory()|CATEGORY_SPECIAL_SUMMON|CATEGORY_GRAVE_SPSUMMON)
	--Atk Down