Housing
- house commit has inappropiate cost for certain parts
http://www.uodemise.com/forum/showthread.php?t=136453
- houses should not be placable on roads
http://www.uodemise.com/forum/showthread.php?t=139597
Bushido
- lightning strike should consume extra mana if player walks
http://www.uodemise.com/forum/showthread.php?t=127699
Weapons
- frenzied whirlwind should properly flag combatants.
http://www.uodemise.com/forum/showthread.php?t=138625
Magery
- PolyMorph should not turn the caster grey/criminal
http://www.uodemise.com/forum/showthread.php?t=116438
- Paralyze should interfere in casting paladin spells.
http://www.uodemise.com/forum/showthread.php?t=120742
Spellweaving
- Ethereal Voyage should not break when attempting to tame dragons, nightmares, etc.
http://www.uodemise.com/forum/showthread.php?t=135349
Misc
- refactor DrawRessource() to DrawResource()
http://www.uodemise.com/forum/showthread.php?t=127202
- random blood "spatter" itemid during combat: more visible blood.
http://www.uodemise.com/forum/showthread.php?t=140092
Taming
- Animal lore should check for skill modifiers when using lore on mobiles.
http://www.uodemise.com/forum/showthread.php?t=140658
Necromany
- Wraithform should allow push-through without stam loss always.
http://www.uodemise.com/forum/showthread.php?t=117126
- Wraithform mana leech should not lower the victim's mana + small cleanup to spellhelper.doleech()
http://www.uodemise.com/forum/showthread.php?t=120238
Chivalry
- Noble Sacrifice should work in houses. RunUO's does not.
http://www.uodemise.com/forum/showthread.php?t=122819
NCP Vendors
- Add necro regs for vendors to buy from players.
http://www.uodemise.com/forum/showthread.php?t=136435
This commit is contained in:
parent
d3e95b7e53
commit
1d74d05af4
16 changed files with 175 additions and 69 deletions
|
|
@ -974,23 +974,24 @@ namespace Server.Spells
|
|||
public static void DoLeech( int damageGiven, Mobile from, Mobile target )
|
||||
{
|
||||
TransformContext context = TransformationSpellHelper.GetContext( from );
|
||||
if ( context != null && context.Type == typeof( WraithFormSpell ) )
|
||||
|
||||
if ( context != null ) /* cleanup */
|
||||
{
|
||||
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 )
|
||||
if ( context.Type == typeof( WraithFormSpell ) )
|
||||
{
|
||||
// Mana leeched by the Wraith Form spell is actually stolen, not just leeched.
|
||||
target.Mana -= manaLeech;
|
||||
from.Mana += manaLeech;
|
||||
from.PlaySound( 0x44D );
|
||||
//from.SendMessage(String.Format("You Leeched {0} Mana", manaLeech));
|
||||
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 );
|
||||
}
|
||||
}
|
||||
else if ( context.Type == typeof( VampiricEmbraceSpell ) )
|
||||
{
|
||||
from.Hits += AOS.Scale( damageGiven, 20 );
|
||||
from.PlaySound( 0x44D );
|
||||
}
|
||||
}
|
||||
if ( context != null && context.Type == typeof( VampiricEmbraceSpell ) )
|
||||
{
|
||||
from.Hits += AOS.Scale( damageGiven, 20 );
|
||||
from.PlaySound( 0x44D );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue