Skip to content

RushDuel.CreateCannotActivateSameCodeEffect ​

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

Signature ​

lua
RushDuel.CreateCannotActivateSameCodeEffect(any e, any desc, any flag, any player, any code) -> 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.
  • desc any: Type and behavior are not yet reviewed; see the source.
  • flag any: Type and behavior are not yet reviewed; see the source.
  • player any: Type and behavior are not yet reviewed; see the source.
  • code 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:346

lua
function RushDuel.CreateCannotActivateSameCodeEffect(e, desc, flag, player, code)
	if Duel.GetFlagEffect(player, flag) ~= 0 then
        return nil
    end
    local e1 = RushDuel.CreateCannotActivateMix(e, desc, player, 1, 0, RESET_PHASE + PHASE_END,
        function(e, re, tp)
	        return re:GetHandler():IsCode(code)
        end)
	Duel.RegisterFlagEffect(player, flag, RESET_PHASE + PHASE_END, 0, 1)
    return e1
end

Used By ​

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

  • Detected in 59 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CreateCannotActivateSameCodeEffect.
CardIDScriptDetected Calls
Wako Gozen Riletta120309021Rush/Scripts/c120309021.lua1
Fairy of the Stars120305016Rush/Scripts/c120305016.lua1
Rescue Rabbit120109057Rush/Scripts/c120109057.lua1
Crystal Seer120109067Rush/Scripts/c120109067.lua1
Cosmostar the White Hole Polairy120293045Rush/Scripts/c120293045.lua1
Eria the Water Spiritualist120301010Rush/Scripts/c120301010.lua1
Sparkhearts Anesh120298022Rush/Scripts/c120298022.lua1
Goe Goe the Rumored Ninja120306029Rush/Scripts/c120306029.lua1
Speed Commander120301058Rush/Scripts/c120301058.lua1
Rescue Cat120307008Rush/Scripts/c120307008.lua1
Sparkhearts Hat120298026Rush/Scripts/c120298026.lua1
Red-Eyes Darkness Metal Dragon120294000Rush/Scripts/c120294000.lua1
Princess Cosmos the Trickster120293046Rush/Scripts/c120293046.lua1
Surtr the Brilliant Magical Sword120306100Rush/Scripts/c120306100.lua1
Onomatopitcher120305031Rush/Scripts/c120305031.lua1
Enceladustellime120304003Rush/Scripts/c120304003.lua1
Healthie Shanlong120306020Rush/Scripts/c120306020.lua1
Resurrection Heliacal Riser120304039Rush/Scripts/c120304039.lua1
Rising HERO Reglam120304024Rush/Scripts/c120304024.lua1
Gagaga Cheergirl120305033Rush/Scripts/c120305033.lua1
Aussa the Earth Spiritualist120301009Rush/Scripts/c120301009.lua1
Dark Magician of Chaos120307001Rush/Scripts/c120307001.lua1
Wynn the Wind Spiritualist120301012Rush/Scripts/c120301012.lua1
Sopla the Skullcrag Princess120298007Rush/Scripts/c120298007.lua1
...and 35 more

Script Examples ​

Wako Gozen Riletta (120309021) ​

Source: Rush/Scripts/c120309021.lua

lua
	if Duel.GetFlagEffect(tp,m)~=0 then return end
	RD.CreateRaceCannotAttackEffect(e,aux.Stringid(m,1),RACE_ALL-RACE_CYBERSE,tp,1,0,RESET_PHASE+PHASE_END)
	RD.CreateCannotActivateSameCodeEffect(e,aux.Stringid(m,2),m,tp,list[1])
	Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end

Fairy of the Stars (120305016) ​

Source: Rush/Scripts/c120305016.lua

lua
		end)
	end
	RD.CreateCannotActivateSameCodeEffect(e,aux.Stringid(m,3),m,tp,list[3])
end

Rescue Rabbit (120109057) ​

Source: Rush/Scripts/c120109057.lua

lua
		end)
	end
	RD.CreateCannotActivateSameCodeEffect(e,aux.Stringid(m,2),m,tp,list[1])
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)