This commit is contained in:
parent
b06dc2c0d0
commit
73a43ed06a
3 changed files with 39 additions and 7 deletions
|
|
@ -78,7 +78,7 @@ namespace Server.Mobiles
|
|||
|
||||
base.DoActionWander();
|
||||
|
||||
if ( !m_Mobile.Controlled )
|
||||
if ( (Utility.RandomDouble() < .05) )
|
||||
{
|
||||
Spell spell = CheckCastHealingSpell();
|
||||
|
||||
|
|
@ -297,7 +297,7 @@ namespace Server.Mobiles
|
|||
if ( spell != null )
|
||||
return spell;
|
||||
|
||||
switch ( Utility.Random( 16 ) )
|
||||
switch ( Utility.Random( 13 ) )
|
||||
{
|
||||
case 0:
|
||||
case 1:
|
||||
|
|
@ -343,6 +343,18 @@ namespace Server.Mobiles
|
|||
break;
|
||||
}
|
||||
|
||||
case 9:
|
||||
{
|
||||
m_Mobile.DebugSay( "Attempting to Invis" );
|
||||
|
||||
if (spell == null )
|
||||
{
|
||||
spell = new InvisibilitySpell( m_Mobile, null );
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default: // Damage them.
|
||||
{
|
||||
m_Mobile.DebugSay( "Just doing damage" );
|
||||
|
|
@ -861,11 +873,16 @@ namespace Server.Mobiles
|
|||
bool isDispel = ( targ is DispelSpell.InternalTarget );
|
||||
bool isParalyze = ( targ is ParalyzeSpell.InternalTarget );
|
||||
bool isTeleport = ( targ is TeleportSpell.InternalTarget );
|
||||
bool isInvisible = ( targ is InvisibilitySpell.InternalTarget );
|
||||
bool teleportAway = false;
|
||||
|
||||
Mobile toTarget;
|
||||
|
||||
if ( isDispel )
|
||||
if( isInvisible )
|
||||
{
|
||||
toTarget = m_Mobile;
|
||||
}
|
||||
else if ( isDispel )
|
||||
{
|
||||
toTarget = FindDispelTarget( false );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue