Skip to content

RushDuel.IsPreviousType ​

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

Signature ​

lua
RushDuel.IsPreviousType(any card, any type) -> any

Description ​

Rush Duel helper declared in RDCondition.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.
  • type 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/RDCondition.lua:198

lua
function RushDuel.IsPreviousType(card, type)
    return (card:GetPreviousTypeOnField() & type) ~= 0
end

Used By ​

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

  • Detected in 11 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsPreviousType.
CardIDScriptDetected Calls
Revenge MAX120228065Rush/Scripts/c120228065.lua1
Star Protector Recapture120306063Rush/Scripts/c120306063.lua1
Alchemicalize Salamandra120235032Rush/Scripts/c120235032.lua1
Resurrection of the Blaze Fiends120231017Rush/Scripts/c120231017.lua1
Archfiend's Revival120170062Rush/Scripts/c120170062.lua1
Counter Back120203031Rush/Scripts/c120203031.lua1
Faulty Fire120145060Rush/Scripts/c120145060.lua1
Driving Snow120130050Rush/Scripts/c120130050.lua1
Gust120120048Rush/Scripts/c120120048.lua1
Brutal Retribution120120049Rush/Scripts/c120120049.lua1
Hunting Strawberries120208064Rush/Scripts/c120208064.lua1

Script Examples ​

Revenge MAX (120228065) ​

Source: Rush/Scripts/c120228065.lua

lua
	RD.SelectAndDoAction(HINTMSG_DESTROY,cm.filter,tp,LOCATION_ONFIELD,0,1,1,aux.ExceptThisCard(e),function(g)
		local tc=g:GetFirst()
		if Duel.Destroy(tc,REASON_EFFECT)~=0 and RD.IsPreviousType(tc,TYPE_EQUIP) then
			local sg=eg:Filter(cm.desfilter,nil)
			if sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then

Star Protector Recapture (120306063) ​

Source: Rush/Scripts/c120306063.lua

lua
end
function cm.exfilter(c)
	return RD.IsPreviousType(c,TYPE_FUSION)
end
function cm.spfilter(c,e,tp)

Alchemicalize Salamandra (120235032) ​

Source: Rush/Scripts/c120235032.lua

lua
end
function cm.exfilter(c)
	return RD.IsPreviousType(c,TYPE_SPELL)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)