Instead of onLand, write 0 so that the player cannot "remove" the fog of war while moving on land; otherwise, write 1.
Instead of onSea, write 0 so that the player cannot "remove" the fog of war while moving on water.
New here? I'm Roha — want a quick tour?