Skip to content

Commit

Permalink
[Shaman] Manually merge 2ab280e for prepatch
Browse files Browse the repository at this point in the history
  • Loading branch information
navv1234 committed Jul 26, 2024
1 parent ad96764 commit f881752
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions engine/class_modules/sc_shaman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ struct shaman_t : public player_t
void init_uptimes() override;
void init_assessors() override;
void init_rng() override;
void init_items() override;
std::string create_profile( save_e ) override;
void create_special_effects() override;
void action_init_finished( action_t& action ) override;
Expand Down Expand Up @@ -7247,11 +7248,6 @@ struct feral_spirit_spell_t : public shaman_spell_t
p()->cooldown.primordial_wave->adjust( -1.0 *
player->sets->set( SHAMAN_ENHANCEMENT, T31, B4 )->effectN( 1 ).time_value() * n_summons );
}
else if ( player->sets->has_set_bonus( SHAMAN_ENHANCEMENT, DF4, B4 ) )
{
p()->cooldown.primordial_wave->adjust( -1.0 *
player->sets->set( SHAMAN_ENHANCEMENT, DF4, B4 )->effectN( 1 ).time_value() * n_summons );
}

if ( type == feral_spirit_cast::TIER31 || type == feral_spirit_cast::ROLLING_THUNDER )
{
Expand Down Expand Up @@ -10188,8 +10184,7 @@ void shaman_t::create_actions()
action.feral_spirit_t28 = new feral_spirit_spell_t( this, "", feral_spirit_cast::TIER28 );
}

if ( sets->has_set_bonus( SHAMAN_ENHANCEMENT, T31, B2 ) ||
sets->has_set_bonus( SHAMAN_ENHANCEMENT, DF4, B2 ) )
if ( sets->has_set_bonus( SHAMAN_ENHANCEMENT, T31, B2 ) )
{
action.feral_spirit_t31 = new feral_spirit_spell_t( this, "", feral_spirit_cast::TIER31 );
}
Expand Down Expand Up @@ -12334,6 +12329,23 @@ void shaman_t::init_rng()
rng_obj.icefury = get_shuffled_rng( "icefury", options.icefury_positive, options.icefury_total );
}

// shaman_t::init_items =====================================================

void shaman_t::init_items()
{
player_t::init_items();

if ( sets->has_set_bonus( specialization(), DF4, B2 ) )
{
sets->enable_set_bonus( specialization(), T31 , B2 );
}

if ( sets->has_set_bonus( specialization(), DF4, B4 ) )
{
sets->enable_set_bonus( specialization(), T31 , B4 );
}
}

// shaman_t::apply_affecting_auras ==========================================

void shaman_t::apply_affecting_auras( action_t& action )
Expand Down

0 comments on commit f881752

Please sign in to comment.