Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-17-2011, 12:22 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

I'm really glad to see someone putting some effort into this. The second "chance to cast" check always bothered me as well.

Another thing that concerns me is the fact that healers cast specific types of healing spells (or don't heal at all) dependent on whether or not the target of the heal is engaged. This isn't a problem in and of itself, but the way it checks it doesn't seem correct. I'm under the impression that a call to IsEngaged() on a client object will almost always return false, because it just executes return(!hate_list.IsEmpty()). I don't think a client uses the hate list unless it happens to be AI controlled (charmed).

This is, of course, also a problem when running client/group engagement checks when spawning bots.

If I'm not completely off-base with my assumptions, this will work better:

Code:
bool mbrIsEngaged = g->members[i]->IsClient() ? g->members[i]->CastToClient()->GetAggroCount() : g->members[i]->IsEngaged();
Reply With Quote
 


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 12:43 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3