I spent a bit of time jiggling batfactors.
Here's what I have:
skill 7131 Kodiak Moment 0 0 regular, once, bear !! instant crit
skill 7132 Grizzly Scene 0.5*monsterhp 0 once, bear
skill 7133 Bear-Backrub 0 -20 once, stun 1, bear
skill 7134 Bearly-Legal 0 0 once, bear
skill 7135 Bear Hug {20,25,30} -{20,25,30} once, bear
skill 7136 I Can Bearly Hear You Over The Applause 0 0 once, bear
I've not added the delevelling bits.
I also added:
skill 12000 Infectious Bite L*{1,3,5} 0
skill 12006 Devour Minions 0 -max(20,0.5*maxhp)
Infectious bite is a pain as it deals level damage in each round - so I put an average rounds of '3' in for now.
I also added the following to WHAM.ash at line 566:
if(contains_text(opt.id, "skill ") ) {
if( contains_text(factors["skill",to_int(optid.group(2))].special, "bear")) {
if( happened( "skill 7131" ) || happened( "skill 7132" ) ||
happened( "skill 7133" ) || happened( "skill 7134" ) ||
happened( "skill 7135" ) || happened( "skill 7136" ) )
continue; // Don't try multiple bear skills in one combat
}
(Just after the line commented "Don't retry things that can only be done once" in the attack_option function)
This appears to make it call bear hug and kodiak moment for me, and I'd expect it to try grizzly scene on bosses.