Skip to content

RushDuel.IsPreviousControler ​

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

Signature ​

lua
RushDuel.IsPreviousControler(any card, any player) -> 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.
  • player 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:190

lua
function RushDuel.IsPreviousControler(card, player)
    return card:GetPreviousControler() == player
end

Used By ​

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

  • Detected in 36 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsPreviousControler.
CardIDScriptDetected Calls
Heavenly Bliss120203033Rush/Scripts/c120203033.lua2
Sunset Rebirth120257066Rush/Scripts/c120257066.lua1
Hysteric Party120279035Rush/Scripts/c120279035.lua1
Critical Service120260022Rush/Scripts/c120260022.lua1
Executie Emergency!120231040Rush/Scripts/c120231040.lua1
Earth Pressure Explosion120155058Rush/Scripts/c120155058.lua1
Looter Force120228064Rush/Scripts/c120228064.lua1
Phantom Roar120235065Rush/Scripts/c120235065.lua1
Gagaga Guts120199060Rush/Scripts/c120199060.lua1
Dark Ruler Sword Swipe120188030Rush/Scripts/c120188030.lua1
RB Dragophone120225032Rush/Scripts/c120225032.lua1
Collapsing Chairs120150041Rush/Scripts/c120150041.lua1
Transam Alive120216028Rush/Scripts/c120216028.lua1
Explosive Destructor Wyrm Dangerous Bakhamut120247038Rush/Scripts/c120247038.lua1
Breaking News!120199063Rush/Scripts/c120199063.lua1
Dark Nebula120235059Rush/Scripts/c120235059.lua1
Resurrection of the Blaze Fiends120231017Rush/Scripts/c120231017.lua1
Archfiend's Revival120170062Rush/Scripts/c120170062.lua1
Climax Clash120208060Rush/Scripts/c120208060.lua1
Imaginary Arc Turnback120196014Rush/Scripts/c120196014.lua1
Soul of a Reporter120145054Rush/Scripts/c120145054.lua1
Maid's Baneful Gift120205065Rush/Scripts/c120205065.lua1
Requesting 9120199061Rush/Scripts/c120199061.lua1
Counter Back120203031Rush/Scripts/c120203031.lua1
...and 12 more

Script Examples ​

Heavenly Bliss (120203033) ​

Source: Rush/Scripts/c120203033.lua

lua
--Activate
function cm.confilter(c,tp,rp)
	return RD.IsPreviousControler(c,tp) and c:IsPreviousLocation(LOCATION_MZONE)
		and ((rp==1-tp and c:IsReason(REASON_EFFECT)) or c==Duel.GetAttackTarget())
end

Sunset Rebirth (120257066) ​

Source: Rush/Scripts/c120257066.lua

lua
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)
		and c:IsReason(REASON_EFFECT)
end

Hysteric Party (120279035) ​

Source: Rush/Scripts/c120279035.lua

lua
--Activate
function cm.confilter(c,tp)
	return RD.IsPreviousControler(c,tp) and c==Duel.GetAttackTarget()
end
function cm.spfilter(c,e,tp)