private void TryToHeal(OrcScout scout)
        {
            scout.m_Bandage = true;
            Bandage bandage = (Bandage) scout.Backpack.FindItemByType( typeof( Bandage ) );

            if ( bandage != null )
            {
                if ( BandageContext.BeginHeal( (Mobile)scout, (Mobile)scout ) != null )
                    bandage.Consume();

                Timer.DelayCall( TimeSpan.FromSeconds( 15 ), new TimerCallback( EnableBanding ) );
            }
        }
Exemple #2
0
 public BandageTimer( OrcScout o )
     : base(TimeSpan.FromSeconds( 15 ))
 {
     scout = o;
        Priority = TimerPriority.OneSecond;
 }
Exemple #3
0
 public BandageTimer(OrcScout o) : base(TimeSpan.FromSeconds(15))
 {
     scout    = o;
     Priority = TimerPriority.OneSecond;
 }