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 01-17-2011, 10:31 PM
cloudwindeq
Fire Beetle
 
Join Date: Oct 2009
Posts: 2
Default Code question on spells.cpp

Hello,

In subroutine Mob::CastedSpellFinished on spells.cpp, the bard AA check function GetAA(aaInternalMetronome) is called within the if-then-else section which is not usable by Bard:

if(GetClass() == BARD) // bard's can move when casting any spell... {
/* some code skipped */
} else // not bard, check movement

{
// if has been attacked, or moved while casting // check for regain concentration
/* some code skipped */

if(IsClient()) { // max 93% chance at 252 skill
channelchance = 30 + GetSkill(CHANNELING) / 400.0f * 100;
channelchance -= attacked_count * 2;
channelchance += channelchance * (GetAA(aaChanellingFocus)*5) / 100;
channelchance += channelchance * (GetAA(aaInternalMetronome)*5) / 100;
} else { // NPCs are just hard to interrupt, otherwise they get pwned
channelchance = 85;
channelchance -= attacked_count;
}
}
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 06:01 PM.


 

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