Skip to content

bit.bnot ​

Signature ​

lua
bit.bnot(int a) -> int

Description ​

Returns the bitwise NOT of a.

Parameters ​

  • a int

Returns ​

  • int - Bitwise NOT of a.

Source ​

  • Utilities/utility.lua:30

Used By ​

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

  • Detected in 3 indexed script(s).
  • Search this function in the Script Explorer with bit.bnot.
CardIDScriptDetected Calls
Darklord Uprising54527349Scripts/c54527349.lua1
Disablaster the Negation Fortress58707981Scripts/c58707981.lua1
Red Hared Hasty Horse19636995Scripts/c19636995.lua1

Script Examples ​

Darklord Uprising (54527349) ​

Source: Scripts/c54527349.lua

lua
		e:SetCategory(bit.bor(cat,CATEGORY_RECOVER))
	else
		e:SetCategory(bit.band(cat,bit.bnot(CATEGORY_RECOVER)))
	end
end

Disablaster the Negation Fortress (58707981) ​

Source: Scripts/c58707981.lua

lua
		zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,tp))
	end
	return bit.bnot(zone)
end
function s.hspcon(e,c)

Red Hared Hasty Horse (19636995) ​

Source: Scripts/c19636995.lua

lua
		zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,tp))
	end
	return bit.bnot(zone)
end
function c19636995.hspcon(e,c)