RushDuel.IsPreviousControler
Alias: RD.IsPreviousControler. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.IsPreviousControler(any card, any player) -> anyDescription
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
cardany: Type and behavior are not yet reviewed; see the source.playerany: 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
endUsed 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.
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())
endSunset 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)
endHysteric 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)