Exemplo n.º 1
0
 private static void MutePlayer(Courier cour, Hero hero)
 {
     if (BadGuy.Config.Courier.MutedHeroes.Value.IsEnabled(hero.Name))
     {
         if (BadGuy.Config.Courier.ExtraSettingsForMute &&
             cour.Inventory.Items.Any(x => x.OldOwner != null && x.OldOwner.IsValid && x.OldOwner.Equals(ObjectManager.LocalHero)))
         {
             cour.GetAbilityById(AbilityId.courier_transfer_items).UseAbility();
         }
         else
         {
             cour.GetAbilityById(AbilityId.courier_return_stash_items).UseAbility();
         }
     }
 }
Exemplo n.º 2
0
 private static void MutePlayer(Courier cour, Hero hero)
 {
     if (BadGuy.Config.Courier.MutedHeroes.Value.IsEnabled(hero.Name))
     {
         cour.GetAbilityById(AbilityId.courier_return_to_base).UseAbility();
     }
 }