private static void UseAbilityOnAllies(Player player)
        {
            // make sure that a current selection (ability user) belongs to the player and is a Unit
            if (
                player.SelectedObject &&
                player.SelectedObject.GetPlayer().username == player.username &&
                player.SelectedObject is Unit
            )
            {
                var abilityUser = (Unit) player.SelectedObject;

                InputToCommandManager.AlliesAbilityTargetSelectionToState(
                abilityUser.GetStateController(), player.selectedAlliesTargettingAbility);

                AbilityUtils.ResetAbilitySelection(player);
            }
        }
        private static void UseAbilityOnAlly(Player player, int hotkey)
        {
			WorldObject allyTarget = player.unitMapping.FindUnitByHotkey (player.GetUnits(), hotkey);

            AbilityUtils.ApplyAllyAbilityToTarget(allyTarget, player);
        }