This commit is contained in:
xavier 2011-08-28 01:23:55 +00:00
parent 73a43ed06a
commit 1a02422299
10 changed files with 368 additions and 292 deletions

View file

@ -3,6 +3,7 @@ using System.Collections.Generic;
using Server.Network;
using Server.Items;
using Server.Targeting;
using Server.Mobiles;
namespace Server.Spells.Necromancy
{
@ -67,13 +68,13 @@ namespace Server.Spells.Necromancy
targets.Add( m );
foreach( Mobile targ in m.GetMobilesInRange( 2 ) )
if( ( targ != Caster && m != targ ) && ( SpellHelper.ValidIndirectTarget( Caster, targ ) && Caster.CanBeHarmful( targ, false) ) )
targets.Add( targ );
if(Caster is BaseCreature && targ is BaseCreature && !((BaseCreature)targ).Controlled && !((BaseCreature)targ).Summoned )
if( ( targ != Caster && m != targ ) && ( SpellHelper.ValidIndirectTarget( Caster, targ ) && Caster.CanBeHarmful( targ, false) ) )
targets.Add( targ );
for( int i = 0; i < targets.Count; ++i )
{
Mobile targ = targets[i];
int num;
if( targ.InRange( m.Location, 0 ) )