Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2012, 02:00 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Unhappy MitigateMeleeDamage Never Fading?

Is there any known bug/problem with partial melee runes? I have an ability essentially copied from Panoply of Vie (mitigate 10% until 2080) that has Mitigate 15% until 50,000.

It never fades...

I let it run for ~20min, tanking several mobs, and it never faded. I kept the 15% melee mitigation and took ~400k damage but the ability never faded.

Now the best part is Panoply of Vie WILL fade, this copied spell with raised mana cost, mitigation percentage, and rune amount never does.

Any pointers? :-\

-Hate
Reply With Quote
  #2  
Old 05-13-2012, 06:38 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Code:
uint32 GetPartialMeleeRuneAmount(uint32 spell_id)
{
	for(int i = 0; i < EFFECT_COUNT; ++i)
	{
		if(spells[spell_id].effectid[i] == SE_MitigateMeleeDamage)
		{
			return spells[spell_id].max[i];
		}
	}
	return 0;
}
The 3 minute guess. Can't fit 50k into a sint16 which is what max[i] is there. The return value is a uint32, and with sign extension the negative 16-bit value becomes a very large unsigned 32-bit value, somewhere around 4 billion.
Reply With Quote
  #3  
Old 05-13-2012, 08:43 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default

Apologies for bothering again.

Thanks for info yet again lerxst2112!

-Hate
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 02:43 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