View Single Post
  #5  
Old 05-30-2014, 06:53 PM
drmario
Fire Beetle
 
Join Date: May 2014
Posts: 4
Default

Quote:
Originally Posted by NatedogEZ View Post
Also take note... the duration it returns is in "ticks" of 6 seconds

so if it returns a duration of 60 -- that is 6 minutes
I took a look at the full spells.cpp just now and that's pretty well explained too

However case 2:
Code:
i = (int)ceil(duration / 5.0f * 3);
return i < duration ? (i < 1 ? 1 : i) : duration;
is still mystifying to me. How is character level taken into account here for these spells including the druid level 1 Snare that clearly scales with level? O_o

It takes the duration, which default for Snare is "39", divides it by a float 5.0 * 3, rounds it to the nearest int, and that is supposed to = duration. What?
Reply With Quote