This commit is contained in:
parent
7ad00dceac
commit
0b4c3b15d9
41 changed files with 976 additions and 144 deletions
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using Server;
|
||||
using Server.Network;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -106,16 +107,16 @@ namespace Server.Items
|
|||
|
||||
if ( NeighborRange >= 0 )
|
||||
{
|
||||
ArrayList list = new ArrayList();
|
||||
List<WarningItem> list = new List<WarningItem>();
|
||||
|
||||
foreach ( Item item in GetItemsInRange( NeighborRange ) )
|
||||
{
|
||||
if ( item != this && item is WarningItem )
|
||||
list.Add( item );
|
||||
list.Add( (WarningItem)item );
|
||||
}
|
||||
|
||||
for ( int i = 0; i < list.Count; i++ )
|
||||
( (WarningItem) list[i] ).Broadcast( triggerer );
|
||||
list[i].Broadcast( triggerer );
|
||||
}
|
||||
|
||||
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( InternalCallback ) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue