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 ) ); } }
public BandageTimer( OrcScout o ) : base(TimeSpan.FromSeconds( 15 )) { scout = o; Priority = TimerPriority.OneSecond; }
public BandageTimer(OrcScout o) : base(TimeSpan.FromSeconds(15)) { scout = o; Priority = TimerPriority.OneSecond; }