RushDuel.FilterChangePositionTarget
Alias: RD.FilterChangePositionTarget. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.FilterChangePositionTarget(any card, any effect, any player, any reason, any hints) -> anyDescription
Rush Duel helper declared in RDAction.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.effectany: Type and behavior are not yet reviewed; see the source.playerany: Type and behavior are not yet reviewed; see the source.reasonany: Type and behavior are not yet reviewed; see the source.hintsany: 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/RDAction.lua:221
lua
function RushDuel.FilterChangePositionTarget(card, effect, player, reason, hints)
local effects = {card:IsHasEffect(EFFECT_CANNOT_CHANGE_POSITION_EFFECT)}
for i, e in ipairs(effects) do
local value = e:GetValue()
if value == 1 then
hints:AddCard(e:GetHandler())
return false
elseif type(value) == "function" and value(e, effect, reason, player) then
hints:AddCard(e:GetHandler())
return false
end
end
return true
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
No indexed local card script currently calls this function.
This can mean the function is unused in the current script set, is only called through an alias, or is available for future/manual scripts.