Skip to content

Commit

Permalink
[Mage] More accurate remaining_winters_chill
Browse files Browse the repository at this point in the history
  • Loading branch information
vituscze committed Jul 26, 2024
1 parent c5c4bfc commit 85f2202
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions engine/class_modules/sc_mage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6553,9 +6553,14 @@ struct splinter_t final : public mage_spell_t

if ( splinterstorm && p()->specialization() == MAGE_FROST )
{
timespan_t delay = timespan_t::from_seconds( travel_delay );
delay += 100_ms; // Add some leeway to account for different travel speeds
make_event( *sim, delay, [ this, t = target ]
// Update remaining_winters_chill exactly when the remaining
// travel time matches that of Flurry.
double distance = player->get_player_distance( *target );
if ( execute_state && execute_state->target )
distance += execute_state->target->height;
timespan_t delay = travel_time();
delay -= timespan_t::from_seconds( std::max( distance, 0.0 ) / 50.0 );
make_event( *sim, std::max( delay, 0_ms ), [ this, t = target ]
{
int wc = 2;
// TODO: Only consider spells that impact after the splinter does
Expand Down

0 comments on commit 85f2202

Please sign in to comment.