I’m not familiar with the druid class but I’m guessing the following:
- Bear Form is form 1
- cat form is form 2
- you can’t cast prowl in combat.
- casting “bear form” when you already are a bear kicks you out of bear
- same for cat form: if already a cat, casting cat again kicks you out of cat
- same for prowl, if already in prowl/stealth, casting prowl/stealth again
kicks you out of stealth.
If last 3 things aren’t true then “!” isn’t needed.
According to prowl’s wowhead description, casting Prowl when not a cat also shifts you into cat form automatically: 1 step prowl, makes you a stealthy kitty even if you are butt-ugly bear.
The [group] option checks if you are in a group (there is also a group:party and group:raid).
So modifying the macro you said works best
/cast [group]!Bear Form;[nocombat] !Prowl; [noform:2] Cat Form; !Bear Form
Again, if you can’t cancel bear, cat or prowl by casting those again when you are bear/cat/stealthy cat, you don’t need the “!”
If you are in a group, always go into Bear (!=don't cancel bear if a bear)
If you are not in a group then
if you are not in combat, cast Prowl (!=don't cancel prowl) .
Otherwise, become the bear (! = don't cancel bear)