Skip to content

RushDuel.ValueEffectIndesType ​

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

Signature ​

lua
RushDuel.ValueEffectIndesType(any self_type, any opponent_type, any ignore) -> any

Description ​

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

Upstream source comment ​

text
效果值: 效果破坏抗性 抵抗类型

Parameters ​

  • self_type any: Type and behavior are not yet reviewed; see the source.
  • opponent_type any: Type and behavior are not yet reviewed; see the source.
  • ignore 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/RDValue.lua:108

lua
function RushDuel.ValueEffectIndesType(self_type, opponent_type, ignore)
    local s_type = self_type or 0
    local o_type = opponent_type or 0
    return function(e, re, rp)
        if e == nil then
            return ignore or false, s_type, o_type
        end
        local op = e:GetOwnerPlayer()
        if rp == op then
            return s_type ~= 0 and re:IsActiveType(s_type)
        else
            return o_type ~= 0 and re:IsActiveType(o_type)
        end
    end
end

Used By ​

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

  • Detected in 168 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.ValueEffectIndesType.
CardIDScriptDetected Calls
Lufer the Symbol of the Devils120309059Rush/Scripts/c120309059.lua1
Rising Protect120304055Rush/Scripts/c120304055.lua1
Sunset Rebirth120257066Rush/Scripts/c120257066.lua1
Supreme Machine Magnum Overlord120150002Rush/Scripts/c120150002.lua1
Fusionic Defense120257064Rush/Scripts/c120257064.lua1
Sevens Road Protection120217021Rush/Scripts/c120217021.lua1
Super Princess of the Flock - Max Mutton [L]120293007Rush/Scripts/c120293007.lua1
Voidvelg Kyrie120244006Rush/Scripts/c120244006.lua1
Celeb Rose Influencers120257044Rush/Scripts/c120257044.lua1
Sevens Road Charmy Witch120260062Rush/Scripts/c120260062.lua1
Tamabot King Golem120285039Rush/Scripts/c120285039.lua1
Voidvelg Elysium120227001Rush/Scripts/c120227001.lua1
Voidvelg Elysium120273004Rush/Scripts/c120273004.lua1
Divinebreath the Orchestral Music Fiend120247018Rush/Scripts/c120247018.lua1
Fate of the World120271054Rush/Scripts/c120271054.lua1
Roaring Firestorm Volcalize Phoenix120249016Rush/Scripts/c120249016.lua1
OuTerverSe Burst Oblivion120290008Rush/Scripts/c120290008.lua1
Eternal Galactica Oblivion120244035Rush/Scripts/c120244035.lua1
Abysskite Ultimail120239048Rush/Scripts/c120239048.lua1
Dragonic Escape120249062Rush/Scripts/c120249062.lua1
Ultra Evolution Miracle120274051Rush/Scripts/c120274051.lua1
Conduction Alchemicalizer Suirai120254042Rush/Scripts/c120254042.lua1
Transam Variable Linac120245002Rush/Scripts/c120245002.lua1
Wish of OuTerverSe the World-Shattering Emperor [L]120293058Rush/Scripts/c120293058.lua1
...and 144 more

Script Examples ​

Lufer the Symbol of the Devils (120309059) ​

Source: Rush/Scripts/c120309059.lua

lua
end
--Activate
cm.indval=RD.ValueEffectIndesType(TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP,TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP)
function cm.confilter(c,tp)
	return c:GetSummonPlayer()==tp

Rising Protect (120304055) ​

Source: Rush/Scripts/c120304055.lua

lua
end
--Activate
cm.indval=RD.ValueEffectIndesType(TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP,TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP)
function cm.filter(c)
	return (cm.filter1(c) or cm.filter2(c)) and c:IsAbleToHand()

Sunset Rebirth (120257066) ​

Source: Rush/Scripts/c120257066.lua

lua
end
--Activate
cm.indval=RD.ValueEffectIndesType(0,TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP)
function cm.confilter(c,tp)
	return RD.IsPreviousControler(c,tp) and c:IsPreviousLocation(LOCATION_MZONE)