Skip to content

Commit

Permalink
ele] model LB consumption behavior properly
Browse files Browse the repository at this point in the history
  • Loading branch information
HawkCorrigan committed Nov 25, 2024
1 parent f90b0d3 commit b44dfdb
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions engine/class_modules/sc_shaman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2346,22 +2346,26 @@ struct shaman_action_t : public Base
{
p()->buff.flurry->trigger( p()->buff.flurry->max_stack() );
}

if ( ( affected_by_ns_cast_time || affected_by_ns_cost ) && !(affected_by_stormkeeper_cast_time && p()->buff.stormkeeper->up()) && !ab::background)
if (!p()->buff.stormkeeper->up() || !affected_by_stormkeeper_cast_time)
{
p()->buff.natures_swiftness->decrement();
}
if ( ( affected_by_ns_cast_time || affected_by_ns_cost ) && !ab::background )
{
p()->buff.natures_swiftness->decrement();
}

if ( ( affected_by_ans_cast_time || affected_by_ans_cost ) && !(affected_by_stormkeeper_cast_time && p()->buff.stormkeeper->up()) && !ab::background)
{
p()->buff.ancestral_swiftness->decrement();
if ( ( affected_by_ans_cast_time || affected_by_ans_cost ) &&
!( affected_by_stormkeeper_cast_time && p()->buff.stormkeeper->up() ) && !ab::background )
{
p()->buff.ancestral_swiftness->decrement();
}

if ( affected_by_arc_discharge && p()->buff.arc_discharge->up() && !ab::background && p()->specialization() == SHAMAN_ELEMENTAL)
{
p()->buff.arc_discharge->decrement();
}
}

if ( affected_by_storm_frenzy && !this->background && exec_type == spell_variant::NORMAL &&
!( affected_by_stormkeeper_cast_time && p()->buff.stormkeeper->up() ) && !ab::background && !p()->bugs)
{
p()->buff.storm_frenzy->decrement();
}

}

void impact( action_state_t* state ) override
Expand All @@ -2370,8 +2374,8 @@ struct shaman_action_t : public Base

p()->trigger_stormbringer( state );

if ( affected_by_storm_frenzy && !this->background && exec_type == spell_variant::NORMAL &&
!( affected_by_stormkeeper_cast_time && p()->buff.stormkeeper->up() ) && !ab::background && p()->bugs )
if ( affected_by_storm_frenzy && exec_type == spell_variant::NORMAL &&
!p()->buff.stormkeeper->up()&& !ab::background )
{
p()->buff.storm_frenzy->decrement();
}
Expand Down Expand Up @@ -12984,8 +12988,7 @@ void shaman_t::trigger_arc_discharge( const action_state_t* state )

}

if ( specialization() == SHAMAN_ENHANCEMENT || !bugs || state->action->execute_time() !=
timespan_t::zero())
if ( specialization() == SHAMAN_ENHANCEMENT )
{
buff.arc_discharge->decrement();
}
Expand Down

0 comments on commit b44dfdb

Please sign in to comment.