Skip to content

Card.ResetFlagEffect ​

Signature ​

lua
Card.ResetFlagEffect(Card c, int code) -> void

Description ​

Resets all flag effects on c with code. This clears matching card markers manually; it does not affect player markers registered with Duel.RegisterFlagEffect.

How To Use It ​

Use this to clear all card markers with the matching code before their natural reset would remove them.

lua
c:ResetFlagEffect(id)

This is a manual clear for flag effects, not a replacement for choosing the right reset mask when the marker is registered.

Parameters ​

  • c Card - Card whose matching flag effects are reset.
  • code int - Flag-effect code to clear.

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3609

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 39 indexed script(s).
  • Search this function in the Script Explorer with Card.ResetFlagEffect.
CardIDScriptDetected Calls
Goyo Emperor59255742Scripts/c59255742.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua1
Trickstar Light Stage35371948Scripts/c35371948.lua3
Trickstar Light Arena63492244Scripts/c63492244.lua3
LaSolfachord Angelia27993919Scripts/c27993919.lua1
TiSolfachord Beautia54387923Scripts/c54387923.lua1
Ghost Mourner & Moonlit Chill52038441Scripts/c52038441.lua1
Sky Striker Ace - Camellia63013339Scripts/c63013339.lua1
Tyrant Wing57470761Scripts/c57470761.lua1
Time Magic Hammer10960419Scripts/c10960419.lua1
Matriarch of Nephthys52904476Scripts/c52904476.lua1
Ultimate Divine-Beast32247099Scripts/c32247099.lua1
Chronicler of Nephthys25397880Scripts/c25397880.lua1
GMX Lab #574378580Scripts/c74378580.lua2
Cerulean Sacred Phoenix of Nephthys24175232Scripts/c24175232.lua1
Trick Box93983867Scripts/c93983867.lua1
Speedroid Maliciousmagnet62899696Scripts/c62899696.lua2
Superheavy Samurai Stealth Ninja50065971Scripts/c50065971.lua1
Defender of Nephthys51782995Scripts/c51782995.lua1
Disciple of Nephthys98999181Scripts/c98999181.lua1
Shinobaron Shade Peacock60823690Scripts/c60823690.lua1
Dark Nephthys38107923Scripts/c38107923.lua1
Fire King High Avatar Garunix23015896Scripts/c23015896.lua1
Arcana Force EX - The Dark Ruler69831560Scripts/c69831560.lua1
...and 15 more

Script Examples ​

Goyo Emperor (59255742) ​

Source: Scripts/c59255742.lua

lua
		local tg=e1:GetLabelObject()
		for tc in aux.Next(tg) do
			tc:ResetFlagEffect(59255742)
		end
		tg:DeleteGroup()

W:P Fancy Ball (4993187) ​

Source: Scripts/c4993187.lua

lua
	local res=Duel.IsExistingMatchingCard(s.lkfilter,tp,LOCATION_EXTRA,0,1,nil)
	le:Reset()
	c:ResetFlagEffect(id)
	if chk==0 then return res end
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)

Trickstar Light Stage (35371948) ​

Source: Scripts/c35371948.lua

lua
		c:SetCardTarget(tc)
		e:SetLabelObject(tc)
		c:ResetFlagEffect(35371948)
		tc:ResetFlagEffect(35371948)
		local fid=c:GetFieldID()