Calix,
Been looking at mana leech this morning with Joe, and it doesn't seem to be broken to me. With legendary necro/ss, I am leeching about 8-10 mana from a mob per wither from about 22-24 damage.
Perhaps you had insanely high skills set or something when you tested it?
For ref: GetDamageTypes in BaseWeapon calculates leeches for hits.
DoLeech in spellhelper for spells
Mana Leech
Moderators: Benn, Calix, senji
-
- Cardinal Chunder
- Posts: 1031
- Joined: Fri Nov 19, 2004 11:23 pm
- Contact:
Re: Mana Leech
Tried this with normal skills and it's still the same, probably something to do with char being a GM. I'll try it on a normal char later.
-
- Cardinal Chunder
- Posts: 1031
- Joined: Fri Nov 19, 2004 11:23 pm
- Contact:
Re: Mana Leech
Spellhelper.cs:
Replace
With
Around line 984. You will now report dmg vs leech when using a spell in wraith form.
Replace
Code: Select all
if ( context.Type == typeof( WraithFormSpell ) )
{
int wraithLeech = ( 5 + (int)( ( 15 * from.Skills.SpiritSpeak.Value ) / 100 ) ); // Wraith form gives 5-20% mana leech
int manaLeech = AOS.Scale( damageGiven, wraithLeech );
if ( manaLeech != 0 )
{
from.Mana += manaLeech;
from.PlaySound( 0x44D );
}
}
Code: Select all
if ( context.Type == typeof( WraithFormSpell ) )
{
int wraithLeech = ( 5 + (int)( ( 15 * from.Skills.SpiritSpeak.Value ) / 100 ) ); // Wraith form gives 5-20% mana leech
int manaLeech = AOS.Scale( damageGiven, wraithLeech );
if ( manaLeech != 0 )
{
from.SendMessage( "You have hit for {1} and have leeched {0} mana", manaLeech, damageGiven );
from.Mana += manaLeech;
from.PlaySound( 0x44D );
}
}
Re: Mana Leech
What is the current status of mana leech from weapon hits anyway? Ddid you lot change that?
I-Cers about my joining I-C:
Clx: "risk", "what? dont", "I`ll object"
Future: "fucked up"
Villa: "dirty and unclean"
senj: "guildhopper"
Re: Mana Leech
Unedited. As per basic RunUO, so in theory as per OSI also.
Re: Mana Leech
Depends if base code is pre or post mana leech changes? I think we did some discussing on this a while back. plx2dig in forum and find out when next u at work.
I-Cers about my joining I-C:
Clx: "risk", "what? dont", "I`ll object"
Future: "fucked up"
Villa: "dirty and unclean"
senj: "guildhopper"