We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ecae23 commit 71bc388Copy full SHA for 71bc388
1 file changed
engine/buff/buff.cpp
@@ -1157,11 +1157,7 @@ buff_t* buff_t::modify_cooldown( timespan_t duration )
1157
1158
buff_t* buff_t::set_period( timespan_t period )
1159
{
1160
- if ( period > timespan_t::zero() )
1161
- {
1162
- buff_period = period;
1163
- }
1164
- else
+ if ( period == timespan_t::min() )
1165
1166
for ( size_t i = 1; i <= s_data->effect_count(); i++ )
1167
@@ -1197,6 +1193,10 @@ buff_t* buff_t::set_period( timespan_t period )
1197
1193
}
1198
1194
1199
1195
1196
+ else
+ {
+ buff_period = period;
+ }
1200
1201
// Recheck tick behaviour, which is dependent on buff_period.
1202
set_tick_behavior( tick_behavior );
0 commit comments