Lots of generics, gm+ can see weapon/armor props without identification
This commit is contained in:
parent
d1a8a6d75e
commit
b0208aa906
7 changed files with 31 additions and 29 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Mobiles;
|
||||
using Server.Network;
|
||||
|
|
@ -34,7 +35,7 @@ namespace Server.Spells.Chivalry
|
|||
{
|
||||
if ( CheckSequence() )
|
||||
{
|
||||
ArrayList targets = new ArrayList();
|
||||
List<Mobile> targets = new List<Mobile>();
|
||||
|
||||
foreach ( Mobile m in Caster.GetMobilesInRange( 3 ) ) // TODO: Validate range
|
||||
{
|
||||
|
|
@ -62,7 +63,7 @@ namespace Server.Spells.Chivalry
|
|||
|
||||
for ( int i = 0; i < targets.Count; ++i )
|
||||
{
|
||||
Mobile m = (Mobile)targets[i];
|
||||
Mobile m = targets[i];
|
||||
|
||||
if ( !m.Alive )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Misc;
|
||||
using Server.Targeting;
|
||||
using Server.Network;
|
||||
|
|
@ -41,7 +42,7 @@ namespace Server.Spells.Sixth
|
|||
|
||||
SpellHelper.GetSurfaceTop( ref p );
|
||||
|
||||
ArrayList targets = new ArrayList();
|
||||
List<Mobile> targets = new List<Mobile>();
|
||||
|
||||
Map map = Caster.Map;
|
||||
|
||||
|
|
@ -63,7 +64,7 @@ namespace Server.Spells.Sixth
|
|||
|
||||
for ( int i = 0; i < targets.Count; ++i )
|
||||
{
|
||||
Mobile m = (Mobile)targets[i];
|
||||
Mobile m = targets[i];
|
||||
|
||||
Caster.DoHarmful( m );
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server.Misc;
|
||||
using Server.Targeting;
|
||||
using Server.Network;
|
||||
|
|
@ -38,7 +39,7 @@ namespace Server.Spells.Sixth
|
|||
|
||||
SpellHelper.GetSurfaceTop( ref p );
|
||||
|
||||
ArrayList targets = new ArrayList();
|
||||
List<Mobile> targets = new List<Mobile>();
|
||||
|
||||
Map map = Caster.Map;
|
||||
|
||||
|
|
@ -60,7 +61,7 @@ namespace Server.Spells.Sixth
|
|||
|
||||
for ( int i = 0; i < targets.Count; ++i )
|
||||
{
|
||||
Mobile m = (Mobile)targets[i];
|
||||
Mobile m = targets[i];
|
||||
|
||||
m.RevealingAction();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue