Skip to content

Commit d2db33f

Browse files
committed
[Druid] use autoshift for berserk
1 parent a083c02 commit d2db33f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/class_modules/sc_druid.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ struct druid_action_t : public Base
22482248
if ( may_autounshift && ( form_mask & NO_FORM ) == NO_FORM )
22492249
p()->shapeshift( NO_FORM );
22502250
else if ( autoshift )
2251-
p()->shapeshift( (form_e)autoshift );
2251+
p()->shapeshift( as<form_e>( autoshift ) );
22522252
else
22532253
assert( false && "Action executed in wrong form with no valid form to shift to!" );
22542254
}
@@ -3354,14 +3354,14 @@ struct berserk_cat_t : public cat_attack_t
33543354
: cat_attack_t( "berserk_cat", player, player->spec.berserk_cat, options_str )
33553355
{
33563356
harmful = may_miss = may_parry = may_dodge = may_crit = false;
3357+
form_mask = autoshift = CAT_FORM;
33573358
}
33583359

33593360
void execute() override
33603361
{
33613362
cat_attack_t::execute();
33623363

33633364
p()->buff.berserk_cat->trigger();
3364-
p()->shapeshift( CAT_FORM );
33653365
}
33663366

33673367
bool ready() override
@@ -4375,14 +4375,14 @@ struct berserk_bear_t : public bear_attack_t
43754375
: bear_attack_t( "berserk_bear", p, p->find_specialization_spell( "berserk" ), o )
43764376
{
43774377
harmful = may_miss = may_parry = may_dodge = may_crit = false;
4378+
form_mask = autoshift = BEAR_FORM;
43784379
}
43794380

43804381
void execute() override
43814382
{
43824383
bear_attack_t::execute();
43834384

43844385
p()->buff.berserk_bear->trigger();
4385-
p()->shapeshift( BEAR_FORM );
43864386
}
43874387

43884388
bool ready() override

0 commit comments

Comments
 (0)