Skip to content

Commit c802c6b

Browse files
committed
[warlock] use floor instead
1 parent 8dae6c0 commit c802c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/class_modules/warlock/sc_warlock_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ namespace warlock
831831
duration *= 1.0 + talents.demonfire_mastery->effectN( 3 ).percent();
832832
}
833833

834-
int ticks = (int)( duration / tick_time );
834+
int ticks = floor(( duration / tick_time ));
835835
if ( talents.raging_demonfire.ok() )
836836
{
837837
ticks += as<int>( talents.raging_demonfire->effectN( 1 ).base_value() );

0 commit comments

Comments
 (0)