Skip to content

Commit

Permalink
[Mage] Fix some stuck sims
Browse files Browse the repository at this point in the history
  • Loading branch information
vituscze committed Sep 7, 2024
1 parent 19a0a40 commit 6682ff3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions engine/class_modules/sc_mage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7062,6 +7062,18 @@ struct splinter_t final : public mage_spell_t
if ( splinterstorm && p()->specialization() == MAGE_FROST )
trigger_winters_chill( s );
}

timespan_t travel_time() const override
{
timespan_t t = mage_spell_t::travel_time();

// Spread the splinter impacts around a bit. Note that we have to use gauss( double, double )
// here because the timespan one doesn't produce negative values.
if ( !splinterstorm )
t += timespan_t::from_millis( rng().gauss( 0.0, 5.0 ) );

return std::max( t, 0_ms );
}
};

// ==========================================================================
Expand Down

0 comments on commit 6682ff3

Please sign in to comment.