Skip to content

RushDuel.CreateAttackLimitEffect ​

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

Signature ​

lua
RushDuel.CreateAttackLimitEffect(any e, any target, any player, any s_range, any o_range, any reset) -> any

Description ​

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

Upstream source comment ​

text
创建限制: 只能用特定类型的怪兽攻击

Parameters ​

  • e any: Type and behavior are not yet reviewed; see the source.
  • target any: Type and behavior are not yet reviewed; see the source.
  • player any: Type and behavior are not yet reviewed; see the source.
  • s_range any: Type and behavior are not yet reviewed; see the source.
  • o_range any: Type and behavior are not yet reviewed; see the source.
  • reset 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/RDLimit.lua:5

lua
function RushDuel.CreateAttackLimitEffect(e, target, player, s_range, o_range, reset)
    local e1 = Effect.CreateEffect(e:GetHandler())
    e1:SetType(EFFECT_TYPE_FIELD)
    e1:SetCode(EFFECT_CANNOT_ATTACK)
    e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
    e1:SetTargetRange(s_range, o_range)
    if target ~= nil then
        e1:SetTarget(target)
    end
    e1:SetReset(reset)
    Duel.RegisterEffect(e1, player)
    return e1
end

Used By ​

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

  • Detected in 81 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CreateAttackLimitEffect.
CardIDScriptDetected Calls
Skysavior Watch120235053Rush/Scripts/c120235053.lua1
Hybridrive Back Fusion120261052Rush/Scripts/c120261052.lua1
Moonforce Timo120300015Rush/Scripts/c120300015.lua1
Moonforce Sheila120300013Rush/Scripts/c120300013.lua1
Dimension Oper120309025Rush/Scripts/c120309025.lua1
Madrhea Amelo120300028Rush/Scripts/c120300028.lua1
Botonaginata the Music Princess120290009Rush/Scripts/c120290009.lua1
Ecliceras Drakon120109033Rush/Scripts/c120109033.lua1
Voidvelg Beyond Probe120300031Rush/Scripts/c120300031.lua1
Soul Drake120252007Rush/Scripts/c120252007.lua1
Fiarma the Ally Spark120298025Rush/Scripts/c120298025.lua1
Goe Goe the Rumored Ninja120306029Rush/Scripts/c120306029.lua1
Peit the Ally Spark120298024Rush/Scripts/c120298024.lua1
Sparkhearts Familiar120298027Rush/Scripts/c120298027.lua1
Cornetlass the Music Princess120287066Rush/Scripts/c120287066.lua1
Lostream Reading120309043Rush/Scripts/c120309043.lua1
Excutie Lumière120231031Rush/Scripts/c120231031.lua1
Dimension Pramma120309026Rush/Scripts/c120309026.lua1
Heavy Cavalry Tactics120155046Rush/Scripts/c120155046.lua1
Lostream Record120309044Rush/Scripts/c120309044.lua1
Excutie Leya Frontier120293069Rush/Scripts/c120293069.lua1
Masenkou, the Lashing Light120238044Rush/Scripts/c120238044.lua1
Memory of Sunlit120300051Rush/Scripts/c120300051.lua1
Sea Dragon Kleindros120199031Rush/Scripts/c120199031.lua1
...and 57 more

Script Examples ​

Skysavior Watch (120235053) ​

Source: Rush/Scripts/c120235053.lua

lua
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateHintEffect(e,aux.Stringid(m,1),tp,1,0,RESET_PHASE+PHASE_END)
	RD.CreateAttackLimitEffect(e,cm.atktg,tp,LOCATION_MZONE,0,RESET_PHASE+PHASE_END)
	RD.CreateNoEffectDamageEffect(e,aux.Stringid(m,2),cm.damval,tp,0,1,RESET_PHASE+PHASE_END)
	Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)

Hybridrive Back Fusion (120261052) ​

Source: Rush/Scripts/c120261052.lua

lua
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateHintEffect(e,aux.Stringid(m,2),tp,1,0,RESET_PHASE+PHASE_END)
	RD.CreateAttackLimitEffect(e,cm.atktg,tp,LOCATION_MZONE,0,RESET_PHASE+PHASE_END)
	Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end

Moonforce Timo (120300015) ​

Source: Rush/Scripts/c120300015.lua

lua
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateRaceCannotAttackEffect(e,aux.Stringid(m,1),RACE_ALL-RACE_GALAXY,tp,1,0,RESET_PHASE+PHASE_END)
	RD.CreateAttackLimitEffect(e,cm.atktg,tp,LOCATION_MZONE,0,RESET_PHASE+PHASE_END)
	RD.CreateNoEffectDamageEffect(e,aux.Stringid(m,2),cm.damval,tp,0,1,RESET_PHASE+PHASE_END)
	Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)