Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2014, 02:38 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default Monk AA - Technique of Master Wu

I noticed you can get a chance to triple attack with this ability... but the math is incorrect.

special_attacks.cpp
Code:
				int TripleChance = 25;

				if (bDoubleSpecialAttack > 100)
					TripleChance += TripleChance*(100-bDoubleSpecialAttack)/100;

				if(TripleChance > MakeRandomInt(0,100)) {
					MonkSpecialAttack(GetTarget(), MonkSPA[MakeRandomInt(0,4)]);
				}
I'm not crazy right.. but that math makes it so that anything over 100 'bDoubleSpecialAttack' gives a LOWER chance to Triple..


200 'bDoubleSpecialAttack' ... gives a nice 0% chance to triple attack
Reply With Quote
  #2  
Old 05-23-2014, 03:33 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default

That does appear to be a problem, and for anyone looking into it, it seems the increase to triple attack for ranks above 5 (rank 5 is 100) is (effect_value - 100) / 4. (5% additional triple attack per rank, rank 9 should come out to (9 - 5) * 5 = 20, effect value for 9 is 180, so (180 - 100) / 4 = 20, rank 10 = 25, (200 - 100) * 5 = 25, holds out for rank 18 as well, assuming it follows the 20% each rank as well)

Edit: it might just be always 1/4 the double attack chance for the AA.

Edit 2: Okay, I pushed a fix for it, just made it 1/4 the double attack chance, which seemed to back up everything I could find about it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:22 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3