Currently, it is possible to attack and hide inside these 2 identical cloud spells each round. If the whole party does this, the ai is effectively paralyzed. Additionally, you can fire into and out of these effects if they are placed on uneven terrain. I'd suggest that the ai have some tactics it can use to counter these strategies and that the bugs with their functionality be fixed.

Darkness should not be identical to fog cloud. Placing them on stairs should not alter either spells effects.

Why doesn't the ai walk into the darkness and hide to become as invisible as the player?

Why can't the ai fire random shots into clouds to attempt to hit the player?

Why doesn't the ai move out of range of the cloud to lure the player out?

Why doesn't the ai enter the cloud to engage the player?