Skip to content

Commit

Permalink
[Druid] Fix assertion error with shapeshift to no form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanzara committed Oct 28, 2017
1 parent 6f00866 commit 16d8bbd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engine/class_modules/sc_druid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4680,6 +4680,7 @@ struct regrowth_t: public druid_heal_t
druid_heal_t( "regrowth", p, p -> find_class_spell( "Regrowth" ), options_str )
{
form_mask = NO_FORM | MOONKIN_FORM;
may_autounshift = true;
ignore_false_positive = true;


Expand Down Expand Up @@ -7782,6 +7783,8 @@ void druid_t::apl_feral()
st->add_action("rake,if=buff.prowl.up|buff.shadowmeld.up");
st->add_action("call_action_list,name=cooldowns");
st->add_action("regrowth,if=combo_points=5&talent.bloodtalons.enabled&buff.bloodtalons.down&(!buff.incarnation.up|dot.rip.remains<8|dot.rake.remains<5)");
st->add_action("regrowth,if=talent.bloodtalons.enabled&buff.bloodtalons.down&buff.apex_predator.up");
st->add_action("ferocious_bite,max_energy=1,if=buff.apex_predator.up");
st->add_action("run_action_list,name=st_finishers,if=combo_points>4");
st->add_action("run_action_list,name=st_generators");

Expand Down Expand Up @@ -9308,6 +9311,10 @@ void druid_t::shapeshift( form_e f )
case MOONKIN_FORM_AFFINITY:
buff.moonkin_form_affinity -> trigger();
break;
case NO_FORM:
if ( buff.rage_of_the_sleeper -> check() )
buff.rage_of_the_sleeper -> expire();
break;
default:
assert( 0 );
break;
Expand Down

0 comments on commit 16d8bbd

Please sign in to comment.