correction in moongates regarding unhiding. ItemID wands should not be dropping on AoS+ shards.

This commit is contained in:
xavier 2011-09-20 01:08:30 +00:00
parent 67a8569ecd
commit 359349ed01
3 changed files with 17 additions and 8 deletions

View file

@ -104,11 +104,8 @@ namespace Server.Items
public virtual void CheckGate( Mobile m, int range )
{
#region Mondain's Legacy
if ( m.Hidden && Core.ML )
{
if ( m.Hidden && m.AccessLevel == AccessLevel.Player && Core.ML )
m.RevealingAction();
m.SendLocalizedMessage( 501955 ); // Your spirit lacks the cohesion for gate travel at this time.
}
#endregion
new DelayTimer( m, this, range ).Start();

View file

@ -10,8 +10,11 @@ namespace Server.Items
return CreateRandomWand();
}
public static BaseWand CreateRandomWand( )
public static BaseWand CreateRandomWand()
{
return Loot.RandomWand();
/*
switch ( Utility.Random( 11 ) )
{
default:
@ -27,6 +30,7 @@ namespace Server.Items
case 9: return new ManaDrainWand();
case 10: return new WeaknessWand();
}
*/
}
}
}

View file

@ -271,11 +271,16 @@ namespace Server
{
typeof( ClumsyWand ), typeof( FeebleWand ), typeof( FireballWand ),
typeof( GreaterHealWand ), typeof( HarmWand ), typeof( HealWand ),
typeof( IDWand ), typeof( LightningWand ), typeof( MagicArrowWand ),
typeof( ManaDrainWand ), typeof( WeaknessWand )
typeof( LightningWand ), typeof( MagicArrowWand ), typeof( ManaDrainWand ),
typeof( WeaknessWand )
};
public static Type[] WandTypes{ get{ return m_WandTypes; } }
private static Type[] m_OldWandTypes = new Type[]
{
typeof( IDWand )
};
public static Type[] OldWandTypes{ get{ return m_OldWandTypes; } }
private static Type[] m_SEClothingTypes = new Type[]
{
@ -358,6 +363,9 @@ namespace Server
public static BaseWand RandomWand()
{
if ( !Core.AOS )
return Construct( m_OldWandTypes, m_WandTypes ) as BaseWand;
return Construct( m_WandTypes ) as BaseWand;
}