-- Water Weakness --

-- ABOUT: Since she's a bee, she has a natural weakness to water. This means her powers won't work as well as they do out of the water.

addHook("ThinkFrame", function()
	for player in players.iterate do -- For every player out there...
		if player.mo.skin ~= "pember" // If the player is Ember...
			continue -- Continues the code
		end
		if player.mo.eflags & MFE_UNDERWATER // If the player object is underwater...
			player.mo.waterlogged = 1 -- Nerfs flight ability and uses smoke for Flame Stinger
		else // Otherwise...
			player.mo.waterlogged = 0 -- Regular flight and regular-looking Flame Stinger
		end
	end
end)