execute as @s at @n[type=zombie,tag=id24_mob] run tp @s ~ ~ ~ ~ 0

execute if score @n[type=zombie,tag=id24_mob] enemy_ability_cooldown_1 matches ..0 run function main:game/mobs/ai/id/id24/pounce/start

execute if entity @s[tag=!idle,tag=!pounce] if entity @e[type=zombie,tag=id24_mob,tag=!spawn,predicate=!main:entity/motion/moving] as @s run function main:game/mobs/ai/id/id24/idle

execute if entity @s[tag=!walk,tag=!pounce] if entity @e[type=zombie,tag=id24_mob,tag=!spawn,predicate=main:entity/motion/moving,scores={stun=..0}] as @s run function main:game/mobs/ai/id/id24/walk