View Single Post
  #2  
Old 01-17-2012, 09:10 PM
AudioGarden21
Sarnak
 
Join Date: Aug 2004
Posts: 80
Default

Quote:
Originally Posted by Caryatis View Post
It is a category, its called "numhits_type" on what.the.fizzle(alla is pretty useless for anything higher end... spell parser-wise)

This is from an old server of mine when I combed through w.t.f and organized them as best I could:

Code:
NUMHIT_AEMAX = 0, 				// max target in cone/beam/unknown(32) spells
NUMHIT_INCOMINGMELEE = 1, 		// melee hits landing on you
NUMHIT_OFFENSIVEMELEE = 2, 		// outgoing melee attacks
NUMHIT_INCOMINGDETRISPELL = 3, 	// incoming detrimental spells 
NUMHIT_OFFENSIVECAST = 4, 		// spells/procs
NUMHIT_OFFENSIVEMELEE2 = 5, 	// All melee skills
NUMHIT_INCOMINGMELEE2 = 6, 		// same
NUMHIT_CASTSPELL = 7, 			// any cast spell matching focus
NUMHIT_ANYDAMAGE = 8,			// spell or melee dmg
NUMHIT_INCOMINGDETRISPELL2 = 9,	// guessed
NUMHIT_SPELLPROC = 10, 			// buff procs etc
NUMHIT_SPELLPROC2 = 11 			// same
The current numhits code is pretty sloppy(mostly my bad) but it gets the job done. I do have a diff of all the categories incorporated unfortunately its mixed with 15k other lines and it was mainly cosmetic. For example, Skin of the Reptile is numhits_type 10 which means its numhits only last for XX buff procs but the code currently checks for buffs like this on every melee swing so the field is not needed in that instance.

Its not ideal however as we have bits all over and to add support for other types means spreading even more around.
Thanks for the clarification of the values, Caryatis, much appreciated.

I did notice that the numhits factor had no bearing on when or whether the spell would actually dissipate once those charges were met, so I knew there was some limiting factor in the code for the usefulness of numhits. You also mentioned that Skin of the Reptile uses type 10. When I was cross referencing the values for an explanation of their purpose, I saw that Reptile's value was set to 1 in my database. Do you think that the type value might play a factor in why most of my reverse procs don't function like I remember them functioning?

EDIT

I just tested Skin of the Reptile, setting numhits to 3 and numhits_type to 10, to see if it would dissipate after three procs but it doesn't seem to make any difference as it lasted the entire duration and proc'd 5 times. One thing of note though, it seems that average procs per minute limit the amount of procs that defensive procs are capable of putting out, which is contrary to what I remember happening. I'm pretty sure they're supposed to be independent of APM. I'm guessing there's no code implemented to take advantage of the numhits_type values in the spell file.
Reply With Quote