Skip to content

Commit

Permalink
[Action] Automatically parse percent cast reductions
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeldur committed Jun 23, 2024
1 parent c4d8776 commit e5ffa63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/action/action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5445,6 +5445,12 @@ void action_t::apply_affecting_effect( const spelleffect_data_t& effect )
value_ = effect.percent();
break;

case P_CAST_TIME:
base_execute_time *= 1 + effect.percent();
sim->print_debug( "{} cast time modified by {}% to {}", *this, effect.base_value(), base_execute_time );
value_ = effect.percent();
break;

case P_GCD:
trigger_gcd *= 1.0 + effect.percent();
if ( trigger_gcd < timespan_t::zero() )
Expand Down

0 comments on commit e5ffa63

Please sign in to comment.