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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-05-2006, 11:49 PM
Zuesrooster
Fire Beetle
 
Join Date: Mar 2006
Location: NYC
Posts: 20
Default Breaking Root and Getting Interupted.

I noticed that casters where not getting interupted taking damage, and found the following in code attack.cpp Mob::CommonDamage line 2180:

if(spell_id != SPELL_UNKNOWN) {

this should be changed to:
if(spell_id == SPELL_UNKNOWN) {

interupts happen from melee damage and not spell damanage. Breaking root at 20% probably should only happen for melee damage. I remember breaking root with a damage spell has a much high probability. I added the following right under the if statement.

Code:
else
		{
			if (IsRooted()) { // neotoyko: only spells cancel root
				if (MakeRandomInt(0, 99) < 60) {
					mlog(COMBAT__HITS, "Spell attack broke root! 60percent chance");
					BuffFadeByEffect(SE_Root, buffslot); // buff slot is passed through so a root w/ dam doesnt cancel itself
				} else {
					mlog(COMBAT__HITS, "Spell attack did not break root. 60 percent chance");
				}
			}
60 percent is a random guess at what it should actually be for spells. All I know is it is higher. If anyone has a better concept of what it should be please let me know.
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 04:24 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