Пример #1
0
        public override bool DoEffect(Mobile from, Mobile target)
        {
            if ( !target.Hidden && from.InLOS( target ) && target.Alive && from.CanBeBeneficial( target ) )
            {
                from.DoBeneficial( target );
                SpellHelper.Turn( from, target );

                Effects.SendLocationParticles( EffectItem.Create( new Point3D( target.X, target.Y, target.Z + 16 ), target.Map, EffectItem.DefaultDuration ), 0x376A, 10, 15, 5045 );
                target.PlaySound( 0x3C4 );

                target.Hidden = true;

                InvisibilitySpell.RemoveTimer( target );

                Timer t = new InvisibilitySpell.InternalTimer( target, TimeSpan.FromSeconds( 30 + Utility.Random( 91 ) ) );
                t.Start();
                InvisibilitySpell.m_Table[target] = t;

                return true;
            }
            else
            {
                return false;
            }
        }