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(); } } }
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(); } }