The bug
When a guardian targets a player or squid on land the beam shows air bubbles.
How to reproduce
Summon a guardian (riding an armor stand) on land using the following command:
/summon minecraft:armor_stand ~ ~ ~ {Passengers:[{id:"minecraft:guardian"}]}Switch to survival mode
/gamemode survival
❌ When the guardian attacks, air bubble particles appear in its beam
Expected behavior
Because the guardian is already on land, the particles from its beam should not include air bubbles.
The reason
The following is based on decompiled version of Minecraft 26.3 using https://mcsrc.dev.
The affected method is net.minecraft.world.entity.monster.Guardian#aiStep(). If the Guardian has a target, air bubbles are shown in the direction of the target, regardless of whether the Guardian is actually in water.
Note: That method also generates air bubbles behind the Guardian when it is moving, but that has a check for whether the Guardian is in water.
Confirmed for 1.13-pre8